XML::Parser::Lite is designed to parse SOAP messages, which encompass only a subset of XML, so I would definitely not use it as a generic parser. XML::SAX::PurePerl is a generic XML parser written entirely in Perl.It is quite slow but this probably doesn't matter for you. And if you use XML::SAX you can always replace it later by a faster parser.

BTW SAX is a standard api for processing XML in stream mode:it looks a bit like XML::Parser's basic api but is more recent and more powerful, especially when it comes to namespace processing (which you probably don't need right now). The most important features of SAX are that as it is standard you can swap parsers, go from a Perl one to a C one (like XML::libXML) or even use a parser that generates SAX calls from a non-XML source, such as Excel stylesheets (XML::SAXDriver::Excel) or CSV (XML::SAXDriver::CSV).


In reply to Re: Re: Re: Which XML module to use? by mirod
in thread Which XML module to use? by BrowserUk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.