Re: Data Island Woes I HAVE THE ANSWER :o)
"Leon Bezuidenhout" <[email protected]> Wed, 28 Feb 2007 15:11:45 +0200
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
Previously I was doing the following
oDataIsland.innerHTML = sXML;
but if sXML hada caption tag, it was stripped.
The solution as follows, parse the frikkin XML first :o)
var objDOMParser = new DOMParser();
var oXML =
objDOMParser.parseFromString("<root><Caption>TESTER</Caption></root>",
"application/xhtml+xml");
oX.appendChild(oXML.documentElement);
Works a charm :o)