Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading XML
Message
From
24/08/2005 11:51:24
 
 
To
23/08/2005 14:44:41
General information
Forum:
ASP.NET
Category:
XML
Title:
Miscellaneous
Thread ID:
01043031
Message ID:
01043422
Views:
10
This message has been marked as the solution to the initial question of the thread.
Hi,

Should work if you resolve the namespace. Try:
      Dim StrXml As String = "c:\response.xml"
        'Create Xml Dom Instance
        Dim ODoc As XmlDocument = New XmlDocument
        Dim ONodeList As XmlNodeList
        Dim oNode As XmlNode
        ODoc.Load(StrXml)
        ' Problem seems to be below

        Dim nsmgr As XmlNamespaceManager = New XmlNamespaceManager(ODoc.NameTable)
        nsmgr.AddNamespace("junk", "http://www.connectpas.com/webservice/0-20041220")

        ONodeList = ODoc.SelectNodes("/junk:Message/junk:Response/junk:Status", nsmgr)

        MsgBox(ONodeList.Count) ' =0 So ONodelist is not getting populated? 
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform