Validate XML
HI,
I need to develop an application that will validate the XML file by using a DTD(external). I want to do this in JAVA as well as in PERL.
Plz help me...
Thanks
viNay
Web Development
HI,
I need to develop an application that will validate the XML file by using a DTD(external). I want to do this in JAVA as well as in PERL.
Plz help me...
Thanks
viNay
by jay eckles
I can't help you specifically with Perl in this case, but for Java, you'll want to look at the new XML packages called JAXP that are being delivered with J2SE 1.4 and J2EE 1.3 (it's available as an optional package for any SDK post 1.1.8):
http://java.sun.com/xml/xml_jaxp.html
Specifically you might want to check out SAXParser...there's a function called isValidating that gives a boolean as to whether or not the instance of the parser is setup to validate XML...that implies to me that youcould use the parser to validate XML. There are many other classes and interfaces in the JAXP packages that you should investigate.
Good luck.
Jay Eckles
www.jayeckles.com
This discussion is closed to new replies.
Sort by Trending