Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: XML-Twig: more efficient tree processing

by ambrus (Abbot)
on Aug 08, 2012 at 21:17 UTC ( #986364=note: print w/ replies, xml ) Need Help??


in reply to Re: XML-Twig: more efficient tree processing
in thread XML-Twig: more efficient tree processing

IMO, if you want incremental parsing with callbacks because your tree does not fit in the memory, XML::LibXML is much harder to use than XML::Twig.

  • Comment on Re^2: XML-Twig: more efficient tree processing

Replies are listed 'Best First'.
Re^3: XML-Twig: more efficient tree processing
by Anonymous Monk on Aug 09, 2012 at 08:04 UTC

    Yup, its quite laborious, pretty much like using raw XML::Parser (or HTML::Parser)

    Where as in Twig you'd say I only want trees out of '/foo/bar/bar' with LibXML (like XML::Parser) you have to build those trees yourself with XML::LibXML::SAX::Parser -- although, there is no reason a XML::Twig type API couldn't be built on top of XML::LibXML::SAX::Parser, its just extra work, given that Twig already exists :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2016-06-30 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (395 votes). Check out past polls.