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.

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.