Re: Re: Re: xpath problem with XML::XPath and LibXML
Grant McLean <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2009-06-22 at 11:09 +0000, [email protected] 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 [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs