A Well-formed XML document is a document that conforms to the XML syntax rules. A Namespace Well-Formed XML document is a document that is Well-formed XML and is also Namespace-wellformed and Namespace-valid.
The XML Syntax rules for Well-formed XML include:
The Namespace-wellformed rules include:
The Namespace-valid rules include:
Check
Well-Formedness
(Alt + Shift +
V, W (Command + Option + V, W on macOS)) action from
the
Validation drop-down
menu on the toolbar (or the XML menu).
Check Well-Formedness
action from the Validate submenu when invoking the contextual
menu in the Project Explorer view.Result: If any errors are found, the result is displayed in the message panel at the bottom of the editor. Each error is displayed as one record in the result list and is accompanied by an error message. Clicking the record will open the document containing the error and highlight its approximate location.
<root><tag></root>The element type "tag" must be terminated by the matching end-tag "</tag>"To resolve the error, click the record in the resulting list and it will locate and highlight the approximate position of the error. In this case, identify the tag that is missing an end tag and insert </tag>.
<prefix:elem></prefix:elem>The prefix "prefix" for element "prefix:elem" is not bound.<x:y></x:y>The prefix "x" for element "x:y" is not bound.