Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: XML Simple

by jettero (Monsignor)
on Jan 25, 2010 at 14:03 UTC ( #819487=note: print w/ replies, xml ) Need Help??


in reply to XML Simple

XML::SImple has to guess. Sometimes it guesses wrong no matter what you do. Then its arguments get rather un-simple while you try to shoehorn it in. I mean, your code and your example data look fine, so I can only assume the next file didn't come out in the same-ly shaped data structure.

You're much better off using something like XML::Twig or one of its cousins. Then you can say precisely what you wish to find and how to process it. Personally, I was mad about wrong guesses by Simple and too much work in Twig. So, I wrote XML::CuteQueries as a kind of thought experiment. I'm not exactly recommending using it in fact it has serious flaws, but I think I kindof like it. It's cute.

Try Twig.

-Paul


Comment on Re: XML Simple

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2014-08-22 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (158 votes), past polls