DOMIT! v 0.2 Tutorial
<<    index    >>
1    2    3    4    5    6    7    8    9    10    11    12    13    14    15    16    17   
18    19    20    21    22    23    24    25    26    27    28    29    30    31   
getNodesByNodeValue

The getNodesByNodeValue method of a DOMIT_Document allows you to search the document tree for nodes containing the specified nodeValue.

This is especially useful for finding text or cdata nodes containing a certain text value.

You must pass in the node value that you are searching for as well as a contextNode - a node from which the search should start.

The following example returns a DOMIT_NodeLIst of all nodes in the current document with a nodeValue of "Robbie Fulks":

NOTE: in versions of DOMIT! prior to 0.5, this method returned an array, not a DOMIT_NodeList!

$myNodeList =& $cdCollection->getNodesByNodeValue("Robbie Fulks", $cdCollection);

A single text node containing the text "Robbie Fulks" will be returned.


Documentation generated by ClassyDoc, using the DOMIT! and SAXY parsers.
Please visit Engage Interactive to download free copies.