Uncaught TypeError: Object #<Object> has no method 'setProperty'
<p>I am using the below code in the javascript</p>

<pre><code>text = LxmlHttp.responseText;
parser = new DOMParser();
xmlDoc = parser.parseFromString(text, "application/xml");
xmlDoc.setProperty('SelectionLanguage', 'XPath');
</code></pre>

<p>I am getting this error: <code>Uncaught TypeError: Object #&lt;Object&gt; has no method 'setProperty'</code></p>

<p>Please help me solve the issue.</p>

<p>TIA..</p>

<p>Hi Felix,
I have the below xml structure</p>

<pre><code>&lt;?xml version="1.0"?&gt;
&lt;response status="200"&gt;
  &lt;ns3:op xmlns="http://xxx.com/details/" 
              xmlns:ns2="http://xxx.com/mgmt/" 
              xmlns:ns3="http://xxx.com/list/"&gt;
    &lt;ns2:ntfs count="140"&gt;
      &lt;ns2:ntf&gt;
        &lt;ns2:Nid&gt;4687807&lt;/ns2:Nid&gt;
      &lt;/ns2:ntf&gt;
    &lt;/ns2:ntfs&gt;
  &lt;/ns3:op&gt;
&lt;/response&gt;
</code></pre>

<p>I have to read this in IE 7, IE 8 , IE 9 , FF, safari and chrome</p>

<p>The namespace index may not be the same and might change.
I need to parse the xml independent of the namespace and browser.</p>

<p>I am trying to do this</p>

<pre><code>var xmlDoc = new DOMParser().parseFromString(....);
xmlDoc.setProperty("SelectionNamespaces", 'xmlns:ns3="http://xxx.com/list/"');
xmlDoc.setProperty("SelectionLanguage", "XPath");
var op = xmlDoc.selectSingleNode("/response/ns3:op");
</code></pre>

<p>This works only in IE.
Please let me know how can i parse the xml in all browsers.</p>
