Hi,
I need to parse an XML document which refers a DTD that further refers to other DTDs. The issue is that one of those second step DTDs is ill-formed, but I don't have the rights to change it. How can I force the SAX reader to read the XML, ignoring the DTD issues?
Will the SAXON parser also give issues while transforming this XML? If yes,then how can I avoid that?
Archana
For all your days prepare and treat them ever alike, when you are the anvil - bear, when you are the hammer - strike
My approach would be to get the malformed DTD fixed. Just because you personally don't have the authority to make the change, doesn't mean it can't be done.
And there's no such thing as "the SAXON parser". Saxon just uses whatever XML parser the JVM is configured to use.
Archana Mehta Datta wrote: Correcting the DTD is just not an option for me, I am way down the hierarchy.
What you have to do is to say "That XML couldn't be parsed because the DTD is incorrect". Keep saying it until somebody figures out that the DTD is incorrect.