Saxparserfactory setvalidating java

22-Mar-2017 04:27

On the other hand, if you are writing an application that filters an XML data file and if you want to output an equally readable version of the file, then that white space would no longer be irrelevant: it would be essential.To get those characters, you would add the This code simply generates a message to let you know that ignorable white space was seen. The SAX specification does not require that this method be invoked.

This is here for jdk 1.4 and earlier Xerces versions.

uses the non-validating parser by default, but it can also activate validation.

Activating validation allows the application to tell whether the XML document contains the right tags or whether those tags are in the right sequence.

*/ Validating(false); /* This should be the default, but let's be safe and try and disable it.

* We also have to cater for older XML parsers that do not support this.

This is here for jdk 1.4 and earlier Xerces versions.uses the non-validating parser by default, but it can also activate validation.Activating validation allows the application to tell whether the XML document contains the right tags or whether those tags are in the right sequence.*/ Validating(false); /* This should be the default, but let's be safe and try and disable it.* We also have to cater for older XML parsers that do not support this.Your question has no meaningful answer except in the context of a particular parser's API.