[Zope-dev] XML Document appendChild questions

Paul Prescod paul@prescod.net
Mon, 23 Aug 1999 22:00:53 -0400


Martijn Faassen wrote:
> 
> Yes, I figured that this was the case. Sometimes one wants to add a node
> to a document that is not yet in that document (it's the first). In that
> case you can't clone a node from the doc, modify it, and move it back
> into the tree -- what's the DOM's stance on this (as the DOM doesn't
> talk about multiple documents)?

There are methods called CreateElement, CreateAttribute,
CreateProcessingInstruction, etc.

 Paul Prescod