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

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
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.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-07-14 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (254 votes), past polls