http://qs321.pair.com?node_id=801427

biswanath_c has asked for the wisdom of the Perl Monks concerning the following question:


Hi,

I was trying to parse an XML doc using XML::LibXML package... I was trying to use textContent() method on a node element to get a node's value. But it gave me the node's value ALONG WITH THE child's value and the grandchild's value!!

What method should i use if i want only the current node's value and NOT the children's value?!