WebSource::Extract - Extract parts of the input
An Extract operator allows to extract sub parts of its input. There exists different flavors of such an operator. The main one consists in querying the input using an XPath expression.
Such an operator is described by a DOM Node having the following form :
<ws:extract name="opname" forward-to="ops"> <path>//an/xpath/expression</path> </ws:extract>
The operator queries any input with the expression found in the path sub-element an returns the found results.
To use a different flavor of the Extract operator (for example xslt) it is necessary to add a type attribut to the ws:extract element. The parameters (sub-elements of ws:extract) depend on the type of operator used.
type
ws:extract
Each flavor of the Extract operator is implemented by a perl module named WebSource::Extract::flavor (eg. WebSource::Extract::xslt). See the corresponding man page for a full description.
Current existing flavors include :
$exop = WebSource::Extract->new(wsdnode => $desc);
See WebSource::Module
WebSource, WebSource::Extract::xslt, WebSource::Extract::form, WebSource::Extract::regexp
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.