Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://819487]
talexb strolls in on this hot, hot Monday morning.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2018-06-18 12:26 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (109 votes). Check out past polls.