Re: Re: Re: xpath problem with XML::XPath and LibXML
by Grant McLean other posts by this author
Jun 22 2009 1:56PM messages near this date
view in the new Beta List Site
Re: Re: Re: xpath problem with XML::XPath and LibXML
|
Re: xpath problem with XML::XPath and LibXML
& XSLT On Mon, 2009-06-22 at 11:09 +0000, redicaps@[...].com wrote:
> Yes, I have read the document.
> findnodes() can get the node list and them I can get the nodes value.
> However, It seem to me that it would be more convenient if LibXML can
> provide a method called getvalues which can return the value as an
> array.
> Anyway, writting such a sub is not hard, we can do it ourselves.
It doesn't even need to be a sub:
my @values = map { $_-> to_literal } $doc->findnodes($xpath);
Cheers
Grant
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
redicaps
Aristotle Pagaltzis
redicaps
Shlomi Fish
Michael Ludwig
redicaps
Grant McLean
Bjoern Hoehrmann
|