blob: 193ba2246ea70377c3a415c6798d408ff025ecc2 [file] [log] [blame]
<?php
require_once 'tutorial_autoload.php';
$store = new ezcTreeXmlInternalDataStore();
$tree = new ezcTreeXml( 'files/example1.xml', $store );
$memTree = ezcTreeMemory::create( new ezcTreeMemoryDataStore() );
ezcTree::copy( $tree, $memTree );
echo $memTree->getChildCountRecursive( 'Elements' ), "\n";
?>