If you have an XML document that is constrained by an XML schema or DTD, you can validate the XML document to check its contents for syntax errors.
To validate an XML document:![]() |
If your XML document's DTD is located on a remote machine, make sure that you have set your proxy in the IDE and have access to the DTD. If the IDE cannot access the DTD, it returns a single error message listing the DOCTYPE declaration. If the IDE cannot access the XML schema, it displays Failed to read schema document. |
The Output window lists any errors 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 generated by DTD validation include:
Working With XML Schemas Creating a DTD Generating DTD Documentation Checking an XML Document for Well-Formedness |
Setting a Proxy