Difference between validating and non validating parsers with xml


With this mode, the schema validator locates and builds schemas and validates the whole or a part of the instance document based on the schema Location and no Namespace Schema Location attributes.

Figure 3-1 shows an XML document as input to the XML Parser for Java.

The DOM or SAX parser interface parses the XML document.

Hi all, I'd like to know if anybody has estimated performance penalty for using validating versus non-validating parser for both SAX and DOM versions?

Is it similar in different implementations -sun and apache are the ones I'm most interested in?

Kathy Validating is a resource intensive process and you should expect to see a difference in performance when compared with non-validating parsing.