|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Getting started with XMLby BaldPenguin (Friar) |
| on Jul 25, 2005 at 15:42 UTC ( [id://477949]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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!
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||