1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
Dim settings As New System.Xml.XmlReaderSettings
Dim reader As New System.Xml.XmlTextReader(projet)
Dim i, j As Integer
reader.MoveToContent()
While reader.Read()
Select Case reader.NodeType
Case System.Xml.XmlNodeType.Element
Select Case reader.Name
Case "Nb_photos"
nb_photos = reader.ReadString()
Case "Fichier_photos"
While reader.Read()
Select Case reader.NodeType
Case System.Xml.XmlNodeType.Element
i = 0
j = 0
While reader.Read()
Select Case reader.NodeType
Case System.Xml.XmlNodeType.Element
If j < 5 Then
fichier_photos(i, j) = reader.ReadString
j = j + 1
Else
i = i + 1
j = 0
reader.Read()
End If
End Select
End While
End Select
End While
End Select
End Select
End While |
Partager