user193476
user193476

Reputation:

A library in JavaScript for XML parsing with namespaces?

I have a handful of code that uses the DOM to parse and traverse some XML data. It works fine on Gecko and WebKit but, of course, IE absolutely chokes on it. Is there a library for an XML DOM that supports:

Support for IE7 is about as far back as I need to go.

Upvotes: 3

Views: 305

Answers (2)

Tom Winter
Tom Winter

Reputation: 1923

Not sure if you want to go this route, but this can be done with MSXML using their nonstandard way of doing things. MSXML 3.0 comes with IE 6 and later.

I haven't actually done this ;-) but this might be what you need:

IXMLDOMNamedNodeMap.getQualifiedItem looks like getAttributeNS

http://msdn.microsoft.com/en-us/library/ms757075.aspx

IXMLDOMNode has a namespaceURI property.

http://msdn.microsoft.com/en-us/library/ms763813.aspx

IXMLDOMNode.baseName looks like localName

http://msdn.microsoft.com/en-us/library/ms767570.aspx

Upvotes: 0

Thiago Jackiw
Thiago Jackiw

Reputation: 799

You can use jQuery to safely and easily parse XML in Internet Explorer. This tutorial Easy XML Consumption using jQuery will give you a more in-depth information on how you can do it.

Upvotes: 1

Related Questions