Re: swap root nodes between XML - HTML documents

>I have tried to replace the html's root

The DOM does not currently support removing/replacing the root element.
We're considering changing that in DOM Level 3, but until that gets settled
the only portable option is to build a new Document.

By the way, the "swapNode" method you mentioned is not part of the standard
DOM API.

______________________________________
Joe Kesselman  / IBM Research

Received on Friday, 20 July 2001 08:37:12 UTC