XML technologies / WordML / WordML introduction / The root element

The root element has a number of attributes and namespace declarations. Apart from the namespace declaration for WordML, all remaining namespace declarations are optional and could be omitted, if no further namespace has been used.

If the document has mixed content, i.e. Word has been used as XML editor and XML data have been saved within the WordML document, the proprietary declaration (URI and namespace) is to be indicated here.

The prefixes provided in this example, such as "w" for WordML, are freely selectable according to the XML rules, but should nevertheless be adopted in this form. In many cases, Word 2003 reacts in a rather unconventional way and therefore internal Word rules should not be violated.

The following code shows the <w:wordDocument> root element with the indications to the namespaces:

<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" w:macrosPresent="no" w:embeddedObjPresent="no" w:ocxPresent="no" xml:space="preserve">
 

The namespaces have the following meanings:

 

back to top