What you want will depend a lot on what you will do and what you will store. XML can be a real memory hog with large data sets. I have used
XML::Simple,
XML::Element and
XML::LibXML. XML::Simple is just that a very simple mod for accessing and creating simple XML files while XML::Element is great for creating XML, but I fin it more difficult to use if you need to traverse any part of the document after you create it. XML::LibXML, in my opinion, has only one drawback, it does everything and sometimes the overhead can be more than you need.
If you need to process large docs, I would recommend
XML::Twig. I have found it to be very fast at traversing the DOM and easily maniputable in it's memory usage.For the longest time, I would use XML::Element to build, and XML::Twig to parse. It's not the only way, just the way I used.
One benefit I have found to using XML::LibXML though, is that the methodoligy and accessors are are very close, if not the same as those used to access XML in many other languages. If you have to use different languages from time to time, it's nice to have a common ground.
Just my opinion, but that is what you asked for.
Don
WHITEPAGES.COM | INC
Everything I've learned in life can be summed up in a small perl script!
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.