Re: [PHP-XML-DEV] Re: dom creation
[email protected] ("Rob Richards")
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
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();