Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: Getting started with XML

by weismat (Friar)
on Oct 22, 2009 at 10:40 UTC ( #802716=note: print w/ replies, xml ) Need Help??

in reply to Re: Getting started with XML
in thread Getting started with XML

I totally agree to use XML::LibXML and you should learn to use XPath which is a query language for the XML tree. XML Simple is really slow and it is way too easy to write unstable code when the structure of the XML changes.

Comment on Re^2: Getting started with XML
Replies are listed 'Best First'.
Re^3: Getting started with XML
by Jenda (Abbot) on Oct 22, 2009 at 13:38 UTC

    It's only really slow once the XML gets big and can't fit in memory.

    When the structure of the XML changes all bets are off. Each module and especially each way you use that module will allow for some changes to go unnoticed, some to break the script and some to cause incorrect results. Including of course XML::LibXML and XPath. There are types of changes that are more likely to force you to change something if you use one module and get away with old script if you use another, but if the XML changes you should ALWAYS review the change and your script and make sure it still works and still returns the right data.

    Enoch was right!
    Enjoy the last years of Rome.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2015-10-10 08:15 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (255 votes), past polls