wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes I need to Java code to validate xml file against dtd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "I need to Java code to validate xml file against dtd" Watch "I need to Java code to validate xml file against dtd" New topic
Author

I need to Java code to validate xml file against dtd

nitin kumar
Ranch Hand

Joined: May 14, 2002
Posts: 105
Hi!

I will pass two arguments one is xml file, another one is dtd file. My Java code should validate this xml file against dtd. Please help me in this regard.

Thanks
Nitin
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41077
    
  43
This article should help.


Ping & DNS - my free Android networking tools app
Kaise a.Zakkar
Ranch Hand

Joined: Oct 20, 2003
Posts: 47
Hi
the XML sectin of the J2EE 1.4 tutorial have a great details about that point
it is useful to check the chapters 4 to 10
Regards


"Nothing is harder on your aurels than resting on them."<br />SCJP 1.4 89%,,SCJA 80%,SCWCD1.4 81%
Starf Rubin
Greenhorn

Joined: Oct 02, 2005
Posts: 2


SCJP1.4<br />SCWCD1.4<br />SCEA(in process)
 
jQuery in Action, 2nd edition
 
subject: I need to Java code to validate xml file against dtd
 
Similar Threads
xml validation agains xsd
Validaring xml file against dtd
Validation against DTD using SAX
validating xml against a DTD
apply- templates!!!!!!!!