Message : Additional information: Object reference not set to an instance of an

cs_nosi Messages postés 2 Date d'inscription lundi 12 janvier 2004 Statut Membre Dernière intervention 22 janvier 2004 - 14 janv. 2004 à 18:53
cs_nosi Messages postés 2 Date d'inscription lundi 12 janvier 2004 Statut Membre Dernière intervention 22 janvier 2004 - 22 janv. 2004 à 11:01
j'obient le message d'erreur "chaine = noeud.FirstChild.InnerText" sur lorsque je fais appel à cette fonction :

Public Function return_hlpath() As String
Dim xdoc As XmlDocument = New Xml.XmlDocument
Dim chemin As System.String

chemin = Application.StartupPath + "\\config.xml"
xdoc.Load(chemin)

Dim noeud As XmlNode
Dim root As XmlElement = xdoc.DocumentElement

noeud = root.SelectSingleNode("descendant::config/quake/path")

Dim chaine As System.String
chaine ="c:\\popo\\tutu"
noeud.InnerText = chaine
End Function

j'ai essayé plein de modifs, mais rien à faire ...
en fait je cherche a naviger dans un fichier XML du style



merci de m'aider !!

1 réponse

cs_nosi Messages postés 2 Date d'inscription lundi 12 janvier 2004 Statut Membre Dernière intervention 22 janvier 2004
22 janv. 2004 à 11:01
bon ben en fait j'ai toruvé toute seule :P
0
Rejoignez-nous