You can also give a relative path to the node in findvalue. The '.' means the current node so if "Time" is a child of the node at $node :
for my $node ($xml->findnodes('//y:Trackpoint')) { $time = $node->findvalue("./Time"); push @X,$time; }
If there are more than one "Time" nodes under $node then findvalue() will concatenate the text from all and return it.
In reply to Re: XML::LibXML and namespaces
by Lotus1
in thread XML::LibXML and namespaces
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |