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: xpath problem with XML::XPath and LibXML
by Shlomi Fish other posts by this author
Jun 22 2009 2:29AM messages near this date
view in the new Beta List Site
Re: Re: xpath problem with XML::XPath and LibXML | Re: Re: xpath problem with XML::XPath and LibXML
& XSLT Hi!

On Monday 22 June 2009 10:10:37 redicaps@[...].com wrote:
>  Thanks.
>  I got another question
> 
>  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?
> 

See -> findnodes():

{{{{{
      findnodes
             @nodes = $node-> findnodes( $xpath_expression );

           findnodes evaluates the xpath expression (XPath 1.0) on the current
           node and returns the resulting node set as an array. In scalar
           context returns a XML::LibXML::NodeList object.

           The xpath expression can be passed either as a string or or as a
           XML::LibXML::XPathExpression object.


}}}}}

Regards,

	Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Funny Anti-Terrorism Story - http://xrl.us/bjn7t

God gave us two eyes and ten fingers so we will type five times as much as we
read.
_______________________________________________
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