Re: Re: dom creation
| From: | Rob Richards | Date: | Sat, 12 Apr 2003 12:12:22 +0000 |
| Subject: | Re: Re: dom creation | ||
| References: | 1 2 3 4 5 | Groups: | php.xml.dev |
| Request: | Send a blank email to php-xml-dev+get-71@lists.php.net to get a copy of this message | ||
That is a possiblitly. Using it in this way, we must be careful with memory
management. Will need to utilitze functionality similar to the
node_list_unlink and the domxml_doc_free_doc code as new documents can be
loaded over an existing document so we need to take care of the underlying
document tree.
I vote we implement it in that fashion as we are going to have to deal with
the above sooner or later. Even if we need to change (to really use a
DocumentLS interface), that doesnt look like it would affect much, as it
really is just a specialized interface of the Document Interface anyways.
Rob
> But, just saw "Convenience Interfaces"
> (http://www.w3.org/TR/2003/WD-DOM-Level-3-LS-20030226/)
>
> $domdocument = domimplementation:create_document()
> $domdocument->load($uri);
> $domdocument->loadXML($string);
> $serialized = $domdocument->saveXML();