Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2017-10-18 09:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (243 votes). Check out past polls.

    Notices?