R
RobG
I'm doing some prototyping with XML files in an environment that uses
IE 6 as the default browser. I have no trouble doing what I want with
Firefox, however some users want to use IE 6.
As IE 6 doesn't have getElementsByTagNameNS and getElementsByTagName
doesn't seem to work on XML files with a namespace, I've written a
routine to recurs over child nodes looking for matching tag names.
It's not particularly efficient but it works, a section of the XML
looks like:
<ns1
arcel ...>
<ns1:CoordGeom ...>
<ns1:Line ... />
<ns1:Line ... />
</ns1:CoordGeom>
</Parcel>
I'd like to know if there is a better way to approach this? I'm
thinking of converting the XML DOM to a javascript object and creating
all my own access methods, but that seems a very heavy handed approach
just to keep IE happy.
IE 6 as the default browser. I have no trouble doing what I want with
Firefox, however some users want to use IE 6.
As IE 6 doesn't have getElementsByTagNameNS and getElementsByTagName
doesn't seem to work on XML files with a namespace, I've written a
routine to recurs over child nodes looking for matching tag names.
It's not particularly efficient but it works, a section of the XML
looks like:
<ns1
<ns1:CoordGeom ...>
<ns1:Line ... />
<ns1:Line ... />
</ns1:CoordGeom>
</Parcel>
I'd like to know if there is a better way to approach this? I'm
thinking of converting the XML DOM to a javascript object and creating
all my own access methods, but that seems a very heavy handed approach
just to keep IE happy.