cvs: pear /XML_Tree/tests test.php

From: Date: Sun, 19 Aug 2001 15:43:49 +0000
Subject: cvs: pear /XML_Tree/tests test.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-578@lists.php.net to get a copy of this message
cox Sun Aug 19 11:43:49 2001 EDT Added files: /pear/XML_Tree/tests test.php Log: simple example/test file for the XML_Tree class Index: pear/XML_Tree/tests/test.php +++ pear/XML_Tree/tests/test.php <?php error_reporting(E_ALL); require 'XML/Tree.php'; // Build a xml file /* <-- (un)comment this line for the 2º example $tree = new XML_Tree; $root = $tree->add_root('MyFriends'); $foo = $root->add_child('name', 'Foo'); $bar = $root->add_child('name', 'Bar', array('age' => 21)); $tree->dump(); print_r($root); $root->dump(); exit; // /**/ // Map a xml file to an object tree $tree = new XML_Tree('../package.xml'); $root = $tree->getTreeFromFile(); print_r($root); $root->dump(); ?>

« previous php.pear.cvs (#578) next »