in reply to searching the XML file for certain nodes
Then you can manipulate the rest all you want with the other functions (I would start with childnodes)my $parser = XML::LibXML->new(); my $doc = $parser->parse_file($data); my ($object) = $doc->findnodes("\/e\/p\[\@v=\"YES\"\]");
my ($object) = $doc->findnodes("\/e\/p\[\@v=\"$criteria\"\]");
|
---|