Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

are there any perl parser programs available to validate the xml using a DTD and also to query the xml for specific data

Replies are listed 'Best First'.
Re: xml parsers
by mirod (Canon) on Nov 21, 2000 at 21:47 UTC

    You should look for XML::Checker if you want to validate the XML against a DTD. It is a drop-in replacement for XML::Parser so you can look at XML::Parser docs.

    As for "querying the XML for specific data" you can probably use XML::XPath, or XML::XQL, or XML::XSLT, or even XML::PYX, XML::Simple or XML::Twig or some other module, there's plenty of them

Re: xml parsers
by merlyn (Sage) on Nov 21, 2000 at 21:37 UTC