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   
removeChild

If you decide after listening to it that you do not like your new cd, you can remove it from the DOM Document using the removeChild method. The removeChild method takes a single parameter: a reference to the soon-to-be-removed node.

Our new cd would therefore be removed in the following way:


$cdLibrary =& $cdCollection->documentElement; 
$cdLibrary->removeNode($cdLibrary->lastChild);

The removeChild method returns a reference to the removed node.


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