XML_Tree
[ class tree: XML_Tree ] [ index: XML_Tree ] [ all elements ]

Source for file cdata_sections_1.php

Documentation is available at cdata_sections_1.php

  1. <?php
  2.  
  3. require_once 'XML/Tree.php';
  4.  
  5. $tree = new XML_Tree;
  6.  
  7. $root =$tree->addRoot('root');
  8.  
  9. //$tree->useCdataSections();
  10.  
  11. $root->addChild('foo','bar');
  12.  
  13. $baz =$root->addChild('baz');
  14.  
  15. $baz->addChild('bat','qux'array()nulltrue);
  16. $baz->addChild('bat','quux'array()nullfalse);
  17.  
  18. $tree->dump();
  19.  
  20. ?>

Documentation generated on Mon, 11 Mar 2019 10:16:51 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.