|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: DOM (level 1): moving elements from one document to another
> Hi, > > appendChild() doesn't let me add a child if it's > ownerDocument is different > from the one where it should be added. What is the easiest > way to get around > this (besides manually creating new nodes in the new Document)? If i understand corerectly, you should be using clonenode and then appendchild, otherwise you have the problem of two different documents pointing to the same node...you dont want that... first clone, then append. David
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








