Documentbuilderfactory non validating
Set the customizable DOM Parser Service Properties.
This method attempts to instantiate a validating parser and a namespace aware parser to determine if the parser can support those features.
This problem was addressed in the Java API for XML Processing, see  XML has become very popular in the last few years because it allows the interchange of complex information between different parties.
Though only a single XML standard exists, there are multiple APIs to XML parsers, primarily of two types: packages.
Using JAXP, applications can choose to use any JAXP compliant parser without changing any code, simply by changing a System property which specifies the SAX- and DOM factory class names.Example import for consumers using the API in this package: A Bundle Activator class that allows any JAXP compliant XML Parser to register itself as an OSGi parser service.Multiple JAXP compliant parsers can concurrently register by using this Bundle Activator class.Hi Everybody, How can I disable XML validation in java 5 parser? This is my code: Document Builder Factory factory = Document Builder Instance(); Validating(false); Ignoring Comments(true); Ignoring Element Content Whitespace(true); Attribute(" Boolean. FALSE); Document Builder builder = Document Builder(); Thanks, Maciej I assume you're talking about XML Schema validation.If it's well-formedness checks you want to disable, then how should the parser deliver a valid Document object?