http://www.perlmonks.org?node_id=1042558


in reply to Re^3: XML parsing and Lists
in thread XML parsing and Lists

well, you're not really using xpathcontext for anything, so it isn't required , this works

$dom->find('count(//Article//Sect//LI)' );