Category: Java

xml tutorials

Get Line Number from XML Validation against XSD Schema

In this example we will grab the Line and column number from the validation exception while validate XML against XSD Schema. We use the javax.xml.validation.Validator to check the XML document against the XSD schema....
xml tutorials

Validate XML against XSD Schema using Java

In this example we will Validate XML against XSD Schema. We use the javax.xml.validation.Validator to check the XML document against the XSD schema. Be careful because the validator is not thread safe. It is...