Validating an XML Document

If you have an XML document with a corresponding external Document Type Definition (DTD) file, you can check the XML document's contents against the DTD for syntax errors.

To validate an XML document:

The Output window lists any errors detected by the IDE along with the line number where the error was detected. This location is not necessarily the line where the error occurred. You can double-click any error message to go to the line in the XML file where the error was detected.

Some common error messages include:

Checking XML Documents/DTDs for Well-Formedness

You can also check any XML document, including DTD entities and extensible style sheets, to make sure they are well-formed. The IDE reports errors in the Output window in the same format as XML validation errors.

To check an XML document:

  1. Right-click the document's node in the Explorer.
  2. Choose Check XML or Check DTD.
See also
The XML Module
Creating an XML Document
Editing an XML Document
Generating a DTD File
Text Editor

Legal Notices