PEAR::XML_Tree

From: Date: Wed, 27 Nov 2002 14:18:16 +0000
Subject: PEAR::XML_Tree
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-199@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"; $doctype = "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />"; $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> PS : My default php.ini is set on "txt/xml" Chris.

« previous php.pear.webmaster (#199) next »