Andreas Korthaus wrote:
$node = new DOMElement("root");
is read only, while
$node = $doc->createElement("root");
is not? Why?
$node = new DOMElement("root");
In this case the element is not associated with a document. In DOM, you
really aren't supposed to have a node not associated with any document,
but this syntax allows the DOM classes to be extended in PHP. Once the
node is associated with a document, you then have full editing capabilities.
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php