I've had (rare) occasion to try both XML::Twig and XML::Simple, but not enough to judge either with any authority. Still, based on what keeps popping up here at the monastery about Twig, I will return to it for another try the next chance I get; meanwhile, the man page for XML::Simple, all by its ponderous self, is enough to convince me that it's name is not very apt, and I won't be trying it again.

But I've noticed that these modules, like many others, are built as layers on top of XML::Parser -- and wouldn't you know, it's pretty handy, too. In fact, most of the XML apps I've written so far have used just that. It's maybe not the easiest thing to get your head around, but it's certainly easier that XML::Simple. And for those of us who grew up programming relatively "close to the hardware", it's kind of nice to be using the fundamental tools on the fundamental objects. It's also nice, I think, for getting a good understanding about what goes on "under the hood" with those extra-layer modules.

For that matter, depending on what you actually need to do with your XML, the basic module might lead you to simpler, more direct, and more efficient solution. It's definitely worth a look.


In reply to Re: Choosing the best XML module for a toy system by graff
in thread Choosing the best XML module for a toy system by fernandes

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.