Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Kindly suggest a good starting point for XML Parsing.

by pileofrogs (Priest)
on Jan 03, 2012 at 22:26 UTC ( #946150=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Kindly suggest a good starting point for XML Parsing.
in thread Kindly suggest a good starting point for XML Parsing.

I probably should have put that in code tags instead of using all those &lt, &gt. Sorry.

<foo name=bobby><name>robert</name></foo>

My point is, your foo has two names.

<foo name=bobby><age>27</age></foo>

Also sucks. It's no different from

<foo age=27><name>bobby</name></foo>

Obviously it's different, but not in a truly meaningful way. You could just as easily say

<foo age=27 name=bobby></foo>

or

<foo><age>27</age><name>bobby</name></foo>


Comment on Re^3: Kindly suggest a good starting point for XML Parsing.
Select or Download Code
Re^4: Kindly suggest a good starting point for XML Parsing.
by choroba (Canon) on Jan 03, 2012 at 22:44 UTC
    I got it. From this point of view, you are right. You did not mention
    <foo> <name>Robert</name> <name>Bobby</name> </foo>
    But you can view it inside out: data types suck, because they cannot easilly represent XML :-)

      ++

      Good point! Very Zen.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-07-05 05:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls