in reply to Re^2: XML Parse, Spanish Elements
in thread XML Parse, Spanish Elements
Hi jbrugger,
Does that also mean that it will return an array of arrays of arrays....?
The downside of something like that is that you would have to use $xml->[3]->[3]->[1]->[2] structures to reference nodes from your XML file. So you have to use you knowledge about the structure of the XML file to be able to reference nodes. That feels unconfortable to me at least.
The nice thing about XML::XPath is that you can use full xpath expressions like /document//element_somwhere[@att="val"]/../next-sibbling or anything like that.
before this starts sounding like a sales-pitch for XML::XPath, I think users should just use what feels most confortable.
The downside of something like that is that you would have to use $xml->[3]->[3]->[1]->[2] structures to reference nodes from your XML file. So you have to use you knowledge about the structure of the XML file to be able to reference nodes. That feels unconfortable to me at least.
The nice thing about XML::XPath is that you can use full xpath expressions like /document//element_somwhere[@att="val"]/../next-sibbling or anything like that.
before this starts sounding like a sales-pitch for XML::XPath, I think users should just use what feels most confortable.
--
Cheers,
Rob
Cheers,
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: XML Parse, Spanish Elements
by jbrugger (Parson) on Feb 13, 2006 at 11:45 UTC | |
by misterb101 (Sexton) on Feb 13, 2006 at 12:23 UTC | |
by jbrugger (Parson) on Feb 13, 2006 at 12:33 UTC |
In Section
Seekers of Perl Wisdom