Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Word
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
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 Markup Language (XML) (Extensible Markup Language (XML): A condensed form of Standard Generalized Markup Language (SGML) that enables developers to create customized tags that offer flexibility in organizing and presenting information.) document according to the rules of an XML schema (XML Schema: A formal specification, written in XML, that defines the structure of an XML document, including element names and rich data types, which elements can appear in combination, and which attributes are available for each element.) 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.
advertisement