Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validation against DTD using SAX

 
Lars Franzen
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Does anyone have any example code when validate an XML file against a DTD when using SAX?
 
Lars Franzen
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I find a solution, thanks any way!
 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How??
How to validate a XML to a DTD through programming?
Chu
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean validating the XML document against a DTD, you can simply parse the document with validation turned on.
If you mean validating the syntax of the DTD itself, I don't know any such program.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic