xml spy
Previous  Top  Next
Check Well-Formedness

This command checks the document for well-formedness by the definitions of the XML 1.0 specification.

Every XML document must be well-formed and therefore XML Spy automatically checks for well-formedness whenever a document is opened, saved, or the view mode is switched from Text to any other view.

If the well-formedness check succeeds, a brief message is displayed at the bottom of the main window:
well_formed

If any error is encountered during the well-formedness check, the source of the problem is highlighted and a corresponding error message is shown:
wf_error

It is generally not permitted to save a malformed XML document, but XML Spy gives you a "Save anyway" option when the automatic well-formedness check upon saving fails. This is useful, when you want to suspend your work temporarily and resume it later, without being able to make the intermediate version of the file well-formed.

The Check well-formedness command normally operates on the active main window. You can also use the Check well-formedness command on any file, folder, or group of files in the active project window. Click on the respective folder, and then on the "Check well-formedness" icon.

Previous  Top  Next

© 2002 Altova