Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Search and Extract from XML when path is unknown

by McA (Priest)
on Jul 10, 2013 at 06:52 UTC ( #1043415=note: print w/ replies, xml ) Need Help??


in reply to Search and Extract from XML when path is unknown

Hi,

I would recommend to also have a look at XML::Parser to solve the issue a little bit more event-driven. You're scanning tags and when the content seems to be the starting point you work on the remaining tags and their content as long as you don't leave the "interesting" subtree . In this case you don't need to know how deep the structure is nested you're looking for.

Best regards
McA


Comment on Re: Search and Extract from XML when path is unknown
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2014-12-19 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (70 votes), past polls