View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
T.J. Mather > XML-GDOME-0.86 > XML::GDOME::XPath::Result

Download:
XML-GDOME-0.86.tar.gz

Annotate this POD

CPAN RT

New  6
Open  0
View/Report Bugs
Source  

NAME ^

  XML::GDOME::XPath::Result - Interface XPathResult implementation.

SYNOPSIS ^

  $int  = $xpresult->getResultType();
  $bool = $xpresult->getBooleanValue();
  $num  = $xpresult->getNumberValue();
  $str  = $xpresult->getStringValue();
  $node = $xpresult->getSingleNodeValue();
  $node = $xpresult->iterateNext();

METHODS ^

$int = $xpresult->getResultType();

Returns: a code representing the type of this result, as defined by the type constants.

$bool = $xpresult->getBooleanValue();

Returns: the value of this boolean result.

$num = $xpresult->getNumberValue();

Returns: the value of this number result.

$str = $xpresult->getStringValue();

Returns: the value of this GdomeDOMString result.

$node = $xpresult->getSingleNodeValue();

Returns: The value of this single node result, which may be undef. This result is not guaranteed to be the first node in document order where the expression evaluates to multiple nodes.

$node = $xpresult->iterateNext();

Iterates and returns the next node from the node set or undef if there are no more nodes.

Returns: the next node.

syntax highlighting: