I need to determine if a Xml-File is a FlatOPC file for Word. How can I achive this?
A:
The first part of the file contains:
<pkg:package
xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage">
So you can read the pkg:package node and check the xmlns:pkg attribute for the expected value.
Robert Harvey
2009-07-06 20:18:54
This does not help, because FlatOPC-Powerpoint files also contain this element. Therefor I cannot use it as qualifier.
crauscher
2009-07-07 08:19:56
A:
This is the one you need
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
crauscher
2009-07-07 08:29:41