![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Perl and XPath.by DigitalKitty (Parson) |
on Jan 06, 2007 at 00:46 UTC ( #593243=perlquestion: print w/replies, xml ) | Need Help?? |
DigitalKitty has asked for the wisdom of the Perl Monks concerning the following question:
Hi all.
I'm currently in the process of teaching myself how to use XPath and Perl to parse XML documents (most notably, the chatterbox feed). After reading the documentation, I felt compelled to inquire about removing the attribute name in the output (please see below):
By using the short program provided by the module's author and what I had already gleaned from various online tutorials, I was able to display the value of each 'author' attribute:
Output:
Is there a method I'm unaware of that will display only the value(s) and omit the atttribute 'name='(?) Thanks, ~Katie
Back to
Seekers of Perl Wisdom
|
|