Apache2-ModXml2
    
    
  
  
  
view release on metacpan or search on metacpan
lib/Apache2/ModXml2.pm view on Meta::CPAN
So in case the document is used this needs to be called
with the document and
a pool to append node deletion as a cleanup.
=back
=head2 XPATH FILTERING
mod_xml2 implements functions for a filter that builds a DOM subtree 
each time
a streaming xpath expression (named pattern by libxml2) matches.
The tree is passed passed to a callback function and decomposed
into single nodes again afterwards.  
The streaming xpath expressions are from a very limited xpath subset 
as described here:
http://www.w3.org/TR/xmlschema-1/#Selector
=over 1
=item xpath_filter_init
  xpath_filter_init($f, $xpath, $namespaces, &transform);
To create a streaming xpath filter this function needs to be called
from filter init. The return value is suitable for returning it from 
filter init.
Every time $xpath matches &transform is called with the subtrees root
node as a parameter.  The namespaces needed to compile the pattern 
are passed as a list [URI, prefix, ...]. Be aware that these prefixes 
are just aliases for pattern usage. They do not need to coincide with 
the prefixes in the document.
=item xpath_filter
( run in 0.441 second using v1.01-cache-2.11-cpan-5dc5da66d9d )