DOMIT! v 0.1 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   
getElementsByTagName

The Document Object Model specifies a convenience method for obtaining a list of elements of the same name. The getElementsByTagName method of DOMIT_Document returns this list as a PHP array.

If, for example,. we wished to get an array of our existing cd nodes, we could simply do:

$myCDNodesArray =& $cdCollection->getElementsByTagName("cd");

We could then iterate through this array of cd nodes using standard PHP array methods.


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