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

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

by Anonymous Monk
on Sep 11, 2014 at 07:13 UTC ( [id://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 )

Replies are listed 'Best First'.
Re^2: Easy XML-parser that can handle large file?
by choroba (Cardinal) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1100257]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-16 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found