aspose file tools*
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
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
 
Similar Threads
Legal XML
Regular expression for valid xml
Issue with Float.parseFloat
Ajax responseXML and IE - Small Issue
Need sample of weblogic.xml file for supporting HttpOnly