tag
$x->span(array('hello'=>'world'),
"Examples of errors DTD validation"
),
// This tag doesn't exist in the DTD
$x->foo()
),
$x->div(
// Footer
$x->hr(),
$x->a(array('href'=>'http://pear.php.net'),
$x->img(array('src'=>'http://pear.php.net/gifs/pear-power.png',
'alt'=>'PEAR Logo'))
)
)
)
);
$err = $x->toXML();
// Print DTD errors
if (PEAR::isError($err)) {
echo ""
.nl2br(htmlSpecialChars($err->getMessage()))
."
";
}
?>