aspose file tools
The moose likes XML and Related Technologies and the fly likes Validation against DTD using SAX Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Validation against DTD using SAX" Watch "Validation against DTD using SAX" New topic
Author

Validation against DTD using SAX

Lars Franzen
Greenhorn

Joined: Nov 01, 2001
Posts: 4
Hi!
Does anyone have any example code when validate an XML file against a DTD when using SAX?
Lars Franzen
Greenhorn

Joined: Nov 01, 2001
Posts: 4
I find a solution, thanks any way!
Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
    
    1
How??
How to validate a XML to a DTD through programming?
Chu
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
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.


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Validation against DTD using SAX
 
Similar Threads
parsing XML document against DTD!!!
xml validation using dtd's
Validation against DTD using DOM (Xerces 2)
answers of the sample test
App chokes when SAX-parsing an XML file without a DTD file