This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Check the Validity of XML document through Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Check the Validity of XML document through Java" Watch "Check the Validity of XML document through Java" New topic
Author

Check the Validity of XML document through Java

arun sharma
Greenhorn

Joined: Jul 02, 2003
Posts: 19
Hi;
I am having a XML file with DTD defined. How can u check its validity through Java
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by arun sharma:
Hi;
I am having a XML file with DTD defined. How can u check its validity through Java

With Java - Apache Xerces http://xml.apache.org/xerces2-j/faq-general.html#faq-4
with .net http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconvalidationagainstdtdwithxmlvalidatingreader.asp


Spritle Software Blogs
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Check the Validity of XML document through Java