in reply to XML::LibXML exists method

Maybe

if ($tmpnode->findnodes('Name/OtherName'))
or
if ($tmpnode->findnodes('Name/OtherName')->size > 0)

Replies are listed 'Best First'.
Re^2: XML::LibXML exists method
by Anonymous Monk on May 05, 2011 at 07:05 UTC
    exists is pure-perl method implemented using findnodes, just copy paste it into program