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   
Caveats
  • Properties such as firstChild, nextSibling, etc. are read only and should not be changed, although technically it is possible to do so. This was a conscious decision because PHP does not allow the stacking of method calls on a single line like:

    $myCD = $cdCollection->getDocumentElement()->getChildNodes(1);

    Always modify nodes using appendChild, insertBefore, removeChild, and replaceChild!

  • There is limited error handling in the current version of DOMIT! At best, an incorrect method call will return false if something goes wrong. Don't count on it though. Try to ensure instead that your code is sound and that any XML passed to the DOMIT! parser is well-formed and valid.


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