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 redicaps other posts by this author
Jun 22 2009 4:10AM messages near this date
view in the new Beta List Site
Re: Re: xpath problem with XML::XPath and LibXML | Re: Re: Re: xpath problem with XML::XPath and LibXML
& XSLT 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.

On Jun 22, 2009 4:47pm, Michael Ludwig <milu71@[...].de>  wrote:
>  redicaps@[...].com schrieb am 22.06.2009 um 07:10:37 (+0000):



>  > when we use LibXML findvalue sub

>  > eg.

>  > $values = $node->findvalue($xpath);

>  >

>  > It will return all the nodes' value as a string. Can it LibXML return

>  > an array or an array ref?



>  For greater flexibility, take a look at findnodes(), which returns an

>  iterator or a list, depending on the context.



>  See: perldoc XML::LibXML::Node



>  Michael Ludwig

>  _______________________________________________

>  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