ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved