Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Easy XML-parser that can handle large file? ( XML::Rules )

by Anonymous Monk
on Sep 11, 2014 at 07:13 UTC ( #1100257=note: print w/replies, xml ) Need Help??


in reply to Easy XML-parser that can handle large file?

instead of XML::Simple use XML::Rules, see more about xml rules

Then there is XML::Twig Quick Reference and XML::LibXML

HTML::TreeBuilder::XPath or XML::LibXML with tools like xpather.pl/htmltreexpather.pl which can give you paths to start with, and all the links here Re: Retrieve select information from HTML, they're examples(for tree-xpath and others)/walkthroughs/tutorials ...

  • Comment on Re: Easy XML-parser that can handle large file? ( XML::Rules )

Re^2: Easy XML-parser that can handle large file?
by choroba (Bishop) on Sep 11, 2014 at 07:52 UTC
    To use XML::LibXML on large files, use the pull parser XML::LibXML::Reader. For example, the following script

    produces the following output:

    ABC123 group [ 1507 : Engines ] value [ 301 : Generator ] group [ 1561 : Längd (i mm) ] value [ : 2625 ] group [ 1498 : Year model ] value [ : 01.1994 ] group [ 1518 : Year model (to) ] value [ : 12.1998 ] group [ 12033 : Vehicle equipment ] value [ 12019 : Maybe ] XYZ789 group [ 1507 : Engines ] value [ 301 : Generator ] group [ 1498 : Year model ] value [ : 01.1985 ] group [ 1518 : Year model (to) ] value [ : 12.1992 ]
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2019-03-26 16:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How do you Carpe diem?





    Results (125 votes). Check out past polls.

    Notices?