H
hharry
Hello All,
I have the following xml file: which I read into a string (sXML)
<?xml version="1.0" ?>
- <BackgroundReports xmlns="http://ns.hr-xml.org/2004-08-02" userId=""
password="">
- <BackgroundReportPackage type="report">
- <ProviderReferenceId>
<IdValue>7173511</IdValue>
</ProviderReferenceId>
</BackgroundReportPackage>
</BackgroundReports>
I am trying to use the xmldocument.selectsinglenode function to extract
node values
e.g.
Dim objXmlDoc As New XmlDocument
Dim objXmlNode As XmlNode
objXmlDoc.LoadXml(sXML)
objXmlNode = objXmlDoc.SelectSingleNode("//BackgroundReportPackage")
If I remove the xmlns spec, this code works fine...how do I use
SelectSingleNode in conjunction with a namespace ?
Thanks In Advance
I have the following xml file: which I read into a string (sXML)
<?xml version="1.0" ?>
- <BackgroundReports xmlns="http://ns.hr-xml.org/2004-08-02" userId=""
password="">
- <BackgroundReportPackage type="report">
- <ProviderReferenceId>
<IdValue>7173511</IdValue>
</ProviderReferenceId>
</BackgroundReportPackage>
</BackgroundReports>
I am trying to use the xmldocument.selectsinglenode function to extract
node values
e.g.
Dim objXmlDoc As New XmlDocument
Dim objXmlNode As XmlNode
objXmlDoc.LoadXml(sXML)
objXmlNode = objXmlDoc.SelectSingleNode("//BackgroundReportPackage")
If I remove the xmlns spec, this code works fine...how do I use
SelectSingleNode in conjunction with a namespace ?
Thanks In Advance