There are
many small java XML parsers available for free and you can use them
in parsing the XML documents. XP is one XML parser that is written in
Java. With that parser you can detect the XML documents that are not
well-formed.
_______________________________________________
This
parser cannot be used for validating at present but it can also parse
the external entities. When we say external entities, it includes external
parameters, general entities, and the external DTD subsets.
Another
java XML parser that is available in the open source category is the
Xerces Java Parser. XML 1.0 is supported by this Xerces Java Parser.
It also supports the XML Schema 1.0, SAX Version 2, and the DOM Level
2. It also supports the DOM Level 1 and the SAX Version 1.
A simple
search on the internet will provide you a list of XML parser that is
written in Java and you can find most of them free. Some websites provide
a list of all the Java XML Parsers available in the open source category.