probleme parser XML VB.NET
Bonjour,
je souhaite recuperer des infos contenues dans un xml, pour cela j'ai fait ce code:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| Imports System.xml
Imports System.Xml.XPath
Imports System.IO
Private Sub lire()
Dim Path As String = "Config.xml"
Dim doc As XPathDocument = New XPathDocument(Path)
Dim nav As XPathNavigator = doc.CreateNavigator
Dim iter As XPathNodeIterator = nav.Select("user")
While iter.MoveNext
Dim Name As String = iter.Current.SelectSingleNode("Name").Value
Dim super As String = iter.Current.SelectSingleNode("super").Value
MsgBox(Name & super)
End While
End Sub |
Le probleme que je recontre est ce message:
Citation:
'SelectSingleNode' is not a member of 'system.Xml.XPath.XPathNavigator'
Merci de me venir en aide