Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading XML
Message
De
24/08/2005 11:51:24
 
 
À
23/08/2005 14:44:41
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Divers
Thread ID:
01043031
Message ID:
01043422
Vues:
9
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform