Yes, that was an error. I dont need to cretae a new root. However, I do need to search for the "Include" node since the document can have multiple H5 nodes.
Speaking of document, the XML structure is not consistent across documents. In this, my List is in H5. But in another it can be anywhere else. So, it give a range of paths, could you please let me know if this is correct?
Thanks again for your help. Really appreciate your time
my $xc = XML::LibXML::XPathContext->new;
my $count = $xc->findvalue('count(//Article//Sect//LI|//Article//Sect/
print "$count list nodes found.\n" if $count;