The advantage that XML::Parser has over XML::LibXML is that the former bundles the C-level parser with it (James Clark's expat parser). While XML::LibXML is in fact faster (and supports a real SAX interface layer), it requires the presence of libxml2, which is generally a part of any GNOME-enabled Linux environment, but may not be present on other systems. They can retrieve and install it, of course, but that is an extra step that may deter some people.

If you have enough control over the environment in your situation to ensure that libxml2 is not a problem, then I would recommend going with XML::LibXML.

--rjray


In reply to Re: Working with XML by rjray
in thread Working with XML by cjf

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.