tags:

views:

27

answers:

2

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"&gt;

So you can read the pkg:package node and check the xmlns:pkg attribute for the expected value.

Robert Harvey
This does not help, because FlatOPC-Powerpoint files also contain this element. Therefor I cannot use it as qualifier.
crauscher
A: 

This is the one you need

<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"&gt;
crauscher