Don't ask to ask, just ask | |
PerlMonks |
Re: get text from node - XML::LibXMLby ikegami (Patriarch) |
on Jul 21, 2018 at 16:26 UTC ( [id://1219014]=note: print w/replies, xml ) | Need Help?? |
Problem #1: You ask for the foo nodes that are children of the document. There are no such nodes. should be or
Problem #2: You ask for the text children of the foo element, but it doesn't have any. It's not even text you want! should be which can be simplified to
Also,
is better written as
So, we get
In Section
Seekers of Perl Wisdom
|
|