Bonjour,
je souhaite mettre un fichier xml dans un dataset.
voici mon code,mais le dataset reste vide.
Private xmlDataBaseData As String = My.Application.Info.DirectoryPath & "\XMLVacanceScolaire.xml" 'http://telechargement.index-education.com/vacances.xml
Dim E2 As Encoding = Encoding.GetEncoding("ISO-8859-1")
Private Sub Form_Calendrier_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
If My.Computer.FileSystem.FileExists(xmlDataBaseData) = True Then
Dim thisDataSet As New DataSet()
E2 = System.Text.Encoding.GetEncoding("ISO-8859-1")
' Create a StreamReader object with the file path and name.
Dim readStream As New System.IO.StreamReader(xmlDataBaseData, E2, True)
' Invoke the ReadXmlSchema method with the StreamReader object.
thisDataSet.ReadXmlSchema(readStream)
' Close the StreamReader
readStream.Close()
End If
End Sub
Merci par avance