Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: XML Module decision tree?

by mirod (Canon)
on Aug 07, 2001 at 11:58 UTC ( [id://102723]=note: print w/replies, xml ) Need Help??

in reply to XML Module decision tree?

It might be difficult but I'll try anyway ;--).

At least here are a few hints:

  • document size: big documents excludes most tree-oriented modules, such as XML::Simple, XML::DOM and XML::XPath
    big depends on your RAM and on the expansion factor of the module, typically between 7 an 10
  • type of XML: document-oriented XML excludes modules such as XML::Simple and XML::SimpleObjects
    those modules don't deal with mixed content (<p>this is <b>mixed</b> content</p>),
  • ease of use: although this is higly subjective XML::Simple seems to be considered really easy to use as it completely masks the XML by loading it into a Perl data structure (a pretty convoluted data-structure IMHO, use Data::Dumper!), tree-based modules (XML::XPath, XML::DOM, XML::Twig) are generally easier to use than stream-based ones, although for simple data extraction XML::PYX is very convenient,
  • speed: at the moment XML::Parser is the fastest (all other modules are based on it) but modules based on libXML should be faster soon (XML::XPath 2.0 for example). Stream-based modules are usually faster than tree-based ones,

Replies are listed 'Best First'.
Re^2: XML Module decision tree?
by Anonymous Monk on Jul 04, 2008 at 10:46 UTC

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://102723]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-05-29 15:33 GMT
Find Nodes?
    Voting Booth?

    No recent polls found