XML Options dialog box
Use these options to set your preferences to:
- Save XML files
- Validate XML against the attached XML Schema
- View XML in the document and in the
XML Structure
task pane
The settings in this dialog box apply to the document that is currently open.
For more information about using XML in Word documents, download the Word 2003 XML Software Development Kit from the MSDN Web site.
XML save options
Save data only Select this option to save only the XML tags and contents that are from the attached Schema. Clear this option to save Word-specific tags, properties, and formatting and layout information.
Apply custom transform Select this option to apply a nondefault XSL Transformation (XSLT) when you save the XML document. The saved file contains only the results of the transformation.
Schema validation options
Validate document against attached schemas Select this option to check the validity of the document against all attached Schemas.
Hide schema violations in this document Select this option to hide the purple wavy lines that indicate invalid XML tagging in your document. To show the validation errors, clear this option.
Ignore mixed content Select this option to hide, in the XML Structure
task pane, text that occurs outside of the attached Schema's child element tags. Any Schema validation errors for such text will also be hidden. Clear this option to display such text as dots in the XML Structure
task pane.
For example, in the following diagram, a custom XML Schema is attached to a document so that the document is tagged as shown.
In this case, Word treats the text Hello as mixed content because it is not within an element other than the root element (spec) of the attached Schema. When you select the Ignore mixed content
check box, Word ignores all text that is not within a child element of the attached Schema, and the text Hello is not represented in the XML Structure
task pane, as shown in the following diagram.
When you clear the Ignore mixed content
check box, the mixed content is represented in the XML Structure
task pane as three dots between the spec and the specHeader elements.
Allow saving as XML even if not valid Select this option to allow a user to save the document as an XML file that contains XML markup that violates the rules of the attached Schema.
XML view options
Hide namespace alias in XML Structure task pane Select this option to display the element names without their namespace identifiers. Selecting this option may make it easier to read the XML element hierarchy that is displayed in the task pane.
Show advanced XML error messages Select this option to display the detailed error messages that are returned by the XML parser. Clear this option to display simplified but less informative error messages.
Show placeholder text for all empty elements Select this option to display the element name as placeholder text that alerts the user to the presence of empty XML elements in the document.
Schema Library
The Schema Library
button opens the Schema Library
dialog box. For information about this dialog box, see Schema Library dialog box.