View Full Version : Ext.DomQuery not working with XML namespaces

4 Sep 2012, 1:43 AM
I'm trying to use Ext.DomQuery to query nodes of an XML document of the sort:


<?xml version="1.0" encoding="UTF-8"?>
<tns:Definition xmlns:tns="http://definition" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://definitionSchema.xsd ">

I want to add basic functionality to it, add, delete, replace, etc.. The problem is that in FireFox I can't get Ext.DomQuery to return anything when querying for a node. For example:


returns an empty array, when in Chrome I can get the node.

Any ideas?

4 Sep 2012, 5:43 AM
I found a solution to my problem, I decided to stick with plain old javascript and use:

var namespace = 'http://definition'

I haven't tested it with IE but it does the trick with FF and Chrome.