Fortunately, Oxygen provides functions that make error identification fast and easy.
Oxygen integrates the latest version of the Xerces-J XML parser to validate documents against XML Schemas.
But if you're writing scripts to parse and convert XML to other forms of data.
It's always a good idea to check that XML is valid you do so.
This will allow you to gracefully stop a program if the XML being handled is invalid.
It's better than a No Such Element Exception from trying to get an item in a list that isn't there!
A valid XML document is "Well-Formed", and also conforms to the rules of a Document Type Definition (DTD) , XML Schema, or other type of schema that defines the structure of an XML document.
When creating XML documents, errors can be introduced.
This saves a lot of time by having easy access to more details about a particular error or by having its schema specification just a click away.
The Oxygen Validation Scenarios are very powerful and solve numerous important issues when working with XML markup and XML-related technologies.
All grammars (XML schema, DTD) that are used for implicit validation must be registered with e Xist using OASIS catalog files.
These catalog files can be stored on disk and/or in the database itself.
This article shows five ways of how to configure different Java APIs (including DOM, SAX, dom4j and XOM) using JAXP 1.3 for checking and validating XML with DTD and Schema(s).