Think about Loose Coupling | |
PerlMonks |
Re^5: array data to jsonby choroba (Cardinal) |
on Jul 05, 2017 at 10:48 UTC ( [id://1194228]=note: print w/replies, xml ) | Need Help?? |
I had to modify the XPath expression (prepend the SLB_) to match anything, otherwise it almost worked the way I showed:
To remove the newline from the start of the value, you need
or, in Perl 5.14 and later:
Update: If you know you're interested in the first element of the nodeset only, you can call string_value directly on the set (see XML::XPath::NodeSet ):
In Section
Seekers of Perl Wisdom
|
|