Michael A. Peters wrote:

$myxhtml->loadXML($xmlstring);
$elements = $myxhtml->getElementsByTagName("html");
$xmlHtml = $elements->item(0);
?>

forgot this tidbit -

<?pjp
if ($usexml == 1) {
   $xmlHtml->setAttribute("xmlns","http://www.w3.org/1999/xhtml";);

$xmlHtml->setAttributeNS('http://www.w3.org/XML/1998/namespace','xml:lang','en');
   }

*now* you can have your php code populate the dom by appending children to $xmlHtml neutral to whether or not it eventually is going to be sent as xml or html.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to