mirror of
https://github.com/php/presentations.git
synced 2026-03-24 15:42:33 +01:00
16 lines
499 B
PHP
16 lines
499 B
PHP
<?php
|
|
require_once 'XML/Tree.php';
|
|
|
|
$tree = new XML_Tree();
|
|
$root =& $tree->addRoot('slide','', array('title'=>'A simple slide'));
|
|
$root->addChild('blurb','A blurb element', array('align'=>'center'));
|
|
$root->addChild('example','',array('type'=>'xml',
|
|
'filename'=>'data/sdphp_talks.xml'));
|
|
$list =& $root->addChild('list','',array('type'=>'arrow'));
|
|
$list->addChild('bullet','first bullet');
|
|
$list->addChild('bullet','second bullet');
|
|
$out = $tree->get();
|
|
|
|
echo nl2br(htmlspecialchars($out));
|
|
?>
|