Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTD Verification with Saxon

Status
Not open for further replies.

niethammer

Programmer
Feb 5, 2001
2
DE
Hello,

I have written a Java program that uses the Saxon API for parsing a XML file.
I would like to verify if the XML document corresponds to the DTD it uses.

Can anyone tell me how this is done?

Thanks in advance.

Florian
 
Where do you get Saxon? By the name, I assume it's Sax, not Dom...
 
You can get Saxon at:

Yes, it's sax.
I found out that you have to set the ErrorHandler for your Builder and implement it to handle parse errors.
But still I do not know how to ensure that the XML document fits the DTD it uses.

Florian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top