in reply to Re: xpath query
in thread xpath query

why cant I find with the xpath query I have and the code I am using, cant I change the query to make it work?

Replies are listed 'Best First'.
Re^3: xpath query
by mojo-jojo (Novice) on Dec 28, 2011 at 10:27 UTC
    Found the solution by using the following code
    my $xp = XML::XPath->new( filename => $_[0] ); my $nodeset = $xp->find('//dependency[not(child::version)] '); +# find all authors foreach my $node ( $nodeset->get_nodelist ) { print XML::XPath::XMLParser::as_string($node)."\n\n"; }