Hi, i have a doc in memory and i need to remove lot of nodes from it and save the result to a file leaving the source doc in memory untouched. Of course i've tried to manually insert all nodes form second level (ie after a root(doc) ) as you describe but this wont copy the comment, if i clone just a document node then i can't save it into a regular file...
i am not familiar with non-existence of copy-constructor of DOMDocument i think it should be useful zdenek > Hi, > why do you want to import the whole document into a newly created > document? Is it not OK to just clone the whole thing? If it is not then > you could manually insert the nodes into the newly created document by > first importing the root element and then inserting the children before > it. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
