WebSource::Filter::tests - apply tests to filter xmlnodes
The tests type of filter allows to declare a series of tests and apply them to the input data in order to determine whether or not to send it further on.
The tests are executed in the order of their declaration until one of them matches. They associated action (keep or reject) is taken. By default the action is to keep elements matching the test. If the element does not match any tests it is rejected.
Current existing tests include :
In wsd file...
<ws:filter name="somename" type="tests"> <test type="exists" select"<xpath-expr>" action="keep" /> <test type="regexp" select="<xpath-expr>" match="<regexp>" action="keep"/> <test type="approx" select="<xpath-expr>" match="<pattern>" modifiers="" action="reject" /> ... </ws:filter>
WebSource, WebSource::Filter
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install WebSource, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebSource
CPAN shell
perl -MCPAN -e shell install WebSource
For more information on module installation, please visit the detailed CPAN module installation guide.