Validate XML

Microsoft Office Word 2003

Show All Show All

Validate XML

Note  XML features, except for saving documents as XML with the Word XML schema, are available only in Microsoft Office Professional Edition 2003 and stand-alone Microsoft Office Word 2003.

Microsoft Word can validate an Extensible Style Language (XML) document according to the rules of an XML schema whenever a schema is attached to the document. Schema violations are shown in the XML Structure task pane.

  1. On the Tools menu, click Templates and Add-Ins.
  2. On the XML Schema tab, do one or both of the following:
    • To enforce validation, select the Validate document against attached schemas check box.
    • To prevent Word from saving a document that is not valid, clear the Allow saving as XML even if not valid check box.
  3. Use the XML Structure task pane to ascertain the validity of a document while you're working on it. Icons next to each element indicate whether the element is invalid and the nature of the violation.

Note  By default, schema violations are marked in the body of the document with purple wavy lines. To turn this feature off, click XML Options on the XML Schema tab of the Templates and Add-ins dialog box, and then select the Hide schema violations in this document check box.

ShowTip

  • To help avoid validation errors while you apply XML tags, select the List only child elements of current element check box in the XML Structure task pane.