I need to parse an xml chunk which I get without root element, namespace delaration and entity declaration despite including all of the three.
So far I've been using Dom4j
and doing some wrapping around the content but new entites and namespaces keep to appear and the DTD/Schema
of the content is not accessible.
Given that I don't control the source from which I'm getting XML,
Is there any kind of java XML parser
that will tolerate these errors?
Abscence of root element
Unbound namespaces
Undeclared entities