Sax setvalidating

SAXParser Validating() method validating − true if the parser produced by this code will validate documents as they are parsed; false otherwise. NA The following example shows the usage of parsers.

Because JAXP 1.0 supported only parsing, therefore, it was called Java API for XML Parsing.

Maybe in future versions of JAXP, the EG might decide to support J-DOM as well. Another Event-based parsing called Pull Parsing, should have been made part of JAXP.

But, there is a different JSR (#173) filed for pull parsing, also known as Streaming API for XML (St AX) parsing, and nothing much can be done about that now. SAX APIs were proposed by David Megginson (in early 1998) as an effort towards a standard API for event-based parsing of XML (read the genesis of SAX here).

SAX tracks current reading position in source XML using locator.

SAX-handler can save that locator for the following detailed error output.

Leave a Reply