Re: rendering a dom tree
Jens Sorensen <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
Have you tried something like this..
var parser = new DOMParser();
var doc = parser.parseFromString( yourXMLContent, "text/xml");
' Insert it into your other document..
var newNode = document.importNode(doc.documentElement,true);
maindoc.getElementById("your_node").appendChild(newNode);
Some references
https://developer.mozilla.org/en/DOMParser
https://developer.mozilla.org/en/DOM/document.importNode
Thanks
Jens
On Tue, Feb 24, 2009 at 7:05 PM, Iuri <[email protected]> wrote:
> Hello,
> I've searched the forums and newsgroups but I can't find how to do the
> following.
> I receive an http response and parse it with an xml parser, getting a
> dom tree (or using .responseXML). How can I then ask the browser to
> show this dom tree on the screen?
> I am doing this from an extension.
> _______________________________________________
> dev-tech-dom mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-dom
>