Re: Re: Re: xpath problem with XML::XPath and LibXML

[email protected]
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
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 <[email protected]> wrote:
> [email protected] 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

> [email protected]

> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.