Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: perl & XML: getting last child?

by sundialsvc4 (Abbot)
on Apr 18, 2013 at 00:52 UTC ( #1029239=note: print w/ replies, xml ) Need Help??


in reply to perl & XML: getting last child?

Indeed.   When you are doing any sort of real-world work with an XML file, “get to know XPath expressions .. very well.”   Don’t write procedural (Perl...) code, whose procedural structure will necessarily be tied more-or-less to that of the structure you’re parsing.   Instead, write an XPath expression to push, as much as possible, the entire responsibility into the library’s hands.   Just as you do every day with an SQL query ...


Comment on Re: perl & XML: getting last child?
Re^2: perl & XML: getting last child?
by Anonymous Monk on Apr 18, 2013 at 03:15 UTC

    Well , no duh, that's what the OP is asking about, that your post doesn't answer -- typical sundialsvc4

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-10-20 05:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (72 votes), past polls