Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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.


Comment on Re: XML Simple

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-12-20 18:42 GMT
Find Nodes?
    Voting Booth?

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

    Results (97 votes), past polls