PEAR::XML & !DOCTYPE ???
| From: | Christophe Hibade | Date: | Wed, 27 Nov 2002 14:37:05 +0000 |
| Subject: | PEAR::XML & !DOCTYPE ??? | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-11178@lists.php.net to get a copy of this message | ||
How to insert a <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
/> into a document
create that way :
<script =language="javascript">
require_once "XML/Tree.php";
$attr_html['xmlns'] = "http://www.w3.org/TR/xhtml1";
$treepage = new XML_tree("","1.0");
$xhtml =& $treepage->addRoot("html", "", $attr_html);
$xhead =& $xhtml->addChild("head");
$xbody =& $xhtml->addChild("body");
$treepage->dump();
</script>
Chris.