Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: XML parsing vs regex

by derekstucki (Sexton)
on May 14, 2013 at 22:51 UTC ( [id://1033576]=note: print w/replies, xml ) Need Help??


in reply to XML parsing vs regex

After a careful consideration of the posted answers, I think the regex is the right choice for THIS particular case because:
The XML in question is retrieved via LWP, so by the time it needs processing, it's in a string, already in memory, so the possible efficiency of the library reading a file is negated.
The site/API I'm retrieving the XML from is versioned, and I request a response from a particular version as part of my call to it, so the format *shouldn't* ever change.
So, all the perfectly valid reasons to use the library in general don't apply enough in THIS case to justify the added complexity. Thanks for all the discussion, it helped.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found