| <?php | |
| require_once 'tutorial_autoload.php'; | |
| $store = new ezcTreeXmlInternalDataStore(); | |
| $tree = new ezcTreeXml( 'files/example1.xml', $store ); | |
| $visitor = new ezcTreeVisitorPlainText( ezcTreeVisitorPlainText::SYMBOL_UTF8 ); | |
| $tree->accept( $visitor ); | |
| echo (string) $visitor; // print the plot | |
| ?> |