XML-LibXML - preservePattern syntax

Posted on Wed Feb 14 02:12:55 2007 by flobadob
preservePattern syntax
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.
Write a response