Web Development

General discussion


Validate XML

By vinaysm ·
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...


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Validate XML

by Jay Eckles In reply to Validate XML

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.:


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

Related Discussions

Related Forums