Start Validating java

Validating java

The input document contains an extra attribute which has not been defined in the XML Schema, this shows that the XML Schema has been used for the validation.

The Java programming language distinguishes between null and empty strings.

Configure Java APIs (SAX, DOM, dom4j, XOM) using JAXP 1.3 to validate XML Documents with DTD and Schema(s).

Many Java XML APIs provide mechanisms to validate XML documents, the JAXP API can be used for most of these XML APIs but subtle configuration differences exists.

To highlight that the DTD has been used for the validation, the title attribute in the input document has a value which is not allowed according to this DTD.