XML::GDOME::XPath::Evaluator - Interface XPathEvaluator implementation.
$xpeval = XML::GDOME::XPathEvaluator::mkref(); $xpnsresolv = $xpeval->createNSResolver($nodeResolver); $xpresult = $xpeval->createResult(); $xpresult = $xpeval->evaluate($expression,$contextNode,$resolver,$type,$result);
Constructor of the XPathEvaluator interface.
Returns: the reference to the XPathEvaluator structure.
Adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated relative to the context of the node where it appeared within the document.
Returns: GdomeXPathNSResolver object.
Returns: an GdomeXPathResult object which may be passed as a parameter to the evaluation methods of this GdomeXPathEvaluator so that a new one is not created on each call to an evaluation method.
Evaluates an XPath expression string
expression: The XPath expression string to be parsed and evaluated.
expression
contextNode: Context node for the evaluation of this XPath expression.
contextNode
resolver: The resolver permits translation of prefixes within the XPath expression into appropriate namespace URIs.
resolver
type: If specified, result will be coerced to return the specified type.
type
result: Specifies a GdomeXPathResult object to be re-used.
result
Returns: a result of the specified type if possible.
To install XML::GDOME, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::GDOME
CPAN shell
perl -MCPAN -e shell install XML::GDOME
For more information on module installation, please visit the detailed CPAN module installation guide.