Missing attributes XML document



I'm transforming a Word document into an XML document based on an XML Schema
using a macro. When the XML document is generated, the root element does not
include two attributes that are necessary for the document to be valid.
Instead, it just includes the attribute xmlns, which is the default namespace
declaration. The attributtes which are missing are:

- xmlns:xsi
- xsi:schemaLocation

The value of the first one tells the schema validator from which namespace
the second attribute is obtained. For example:
The value of the second one tells the schema validator where default
namespace is defined (the value of xmlns). For example: "database.xsd"

Is there a way to include these attributes from Word? I cannot use XSLT
because the XSLT processor does not recognise the file for the same reason.




Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question