Permissions beyond the scope of this license may be available at [email protected] XML parser is a tool to validate your code to ensure it is well-formed.By now, you have done a lot of experimenting with the nonvalidating parser.It's time to have a look at the validating parser to find out what happens when you use it to parse the sample presentation.To be notified of validation errors in an XML document, the parser factory must be configured to create a validating parser, as shown in the preceding section.In addition, the following must be true: You'll learn more about namespaces in Validating with XML Schema.The response XML property returns the response as an XML DOM object.
Errors in XML documents will stop your XML applications.
A non-validating parser only checks for structure problems with the XML code.
This tool will suffice when there is no document type definition (DTD) or schema.
The W3C XML specification states that a program should stop processing an XML document if it finds an error.
The reason is that XML software should be small, fast, and compatible.