|
I am trying to get a chunk of xml using preservePattern. When I try to match on attributes, I don't get anything so my syntax must be wrong. Can anyone spot where I am going wrong?
my $reader = XML::LibXML::Reader->new( location => $xmlfile );
$reader->preservePattern('//clients/client[@name=test]');
$reader->finish;
thanks.
|