selectsinglenode of namespace attribute
- From: "Praveen" <praveen@xxxxxxxxxxxxxxxx>
- Date: Fri, 9 Mar 2007 23:33:42 +0530
I'm loading an xml and doing selectSingleNode(//*[xpath])
xpath is with namespace attribute.
var xmlStr="<R AB:I='1' xmlns:AB='urn:MynameSpace'><I
xmlns:AB='urn:MynameSpace' AB:I='2'/></R>"
var abc=new ActiveXObject("MSXML2.DOMDocument.4.0");
abc.async=false
abc.loadXML(xmlStr)
abc.setProperty("SelectionLanguage", "XPath");
abc.setProperty("SelectionNamespaces", "xmlns:AB='urn:MynameSpace'");
alert(abc.documentElement.xml)//xmml i coming proper
DNode=abc.documentElement.selectSingleNode("//*[AB:I=2]");
alert(DNode)//this is coming as null
thanks,
praveen.
.
- Follow-Ups:
- Re: selectsinglenode of namespace attribute
- From: Praveen
- Re: selectsinglenode of namespace attribute
- Prev by Date: Re: how to debug a javascript?
- Next by Date: Re: selectsinglenode of namespace attribute
- Previous by thread: Need help - How to change icon in dialog box ?
- Next by thread: Re: selectsinglenode of namespace attribute
- Index(es):