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

I am new to XML programming. I have to read and write XML using externally defined xsd stylesheets. Which are the best modules to use?
  • Comment on Which XML modules to use with xsd stylesheets?

Replies are listed 'Best First'.
Re: Which XML modules to use with xsd stylesheets?
by dHarry (Abbot) on Aug 14, 2009 at 08:37 UTC

    XSD stands for XML Schema Definition. Are you sure they're stylesheets your dealing with? Or do you want to validate your XML document with a schema? Take a look at the Perl bindings for Libxml and libxslt. This is probably your best option.

      Yes, you are right. I was confusing schemas and stylesheets. There are schemas (xsd) that the output has to conform to and which I can presumably use to interpret the input.
Re: Which XML modules to use with xsd stylesheets?
by tomhukins (Curate) on Aug 17, 2009 at 16:38 UTC
    If you want to parse XML schemas, take a look at XML::Compile::Schema that ships with the XML::Compile distribution. The module has a helpful mailing list in case you get stuck.