Browserless javascript “XML DOM with NS” support

BetaBob

New Member
What are some recommended ways of dealing with namespace heavy xml documents without having to rely on the browser?Background: I am handling wsdl/soap documents from Web Services with ajax. It is very frustrating when something like doc.getElementsByTagName("xs:complexType") behaves differently on a mobile cordova app in a tablet, and a chrome browser on the desktop. On some of the devices you have to strip the prefix, and on others you must include it. Another example of a problem is getElementsByTagNameNS on older browsers.JQuery out of the box seems to make you use the prefix in the selectors as opposed to the actual namespace. This is a bit of a pain, because it is very common for the documents to use multiple prefixes for the same namespace.Dojox.xml would require me to bring an entire framework to use alongside my existing JQuery code just to handle xml.I am currently dealing with these issues on a case-by-case basis, but I am wondering if there is a better way.
 
Back
Top