xml data islands in FireFox
Posted on 2009-05-18
<xml id="myxml" name="myxml" runat="server"></xml>
This works great in IE.
I have to make this work in Firefox.
Unfortunately, Firefox doesn't directly support the <xml> tag. So I wind up with two problems:
1) The xml gets spewed onto the screen. I can fix this by hiding the element.
2). The bigger problem is that the xml is being modified. The innerHTML property contains only the concatenated text of all the elements - all of the tags and attributes have been stripped out. This, of course, renders the text useless as xml.
So the question is, how do I get the <xml> tag to behave in Firefox in a way that solves problem 2 listed above? Or is it not possible?
Is there a recommended method for doing xml data islands in Firefox?