Je n'ai rien trouvé qui puisse m'aider, je suis débutant avec ce code. D'autre piste ??
Imports System.Xml Imports System.IO Public Class Form1 Public Sub Form1() 'creation d'une nouvelle instance du membre xmldocument Dim XmlDoc As XmlDocument = New XmlDocument() XmlDoc.Load("C:\Users\toto.xml") Dim element As XmlNodeList element = XmlDoc.DocumentElement.GetElementsByTagName("NewDataSet") Dim noeud, noeudEnf As XmlNode Dim UrlSite As String Dim NomSite As String For Each noeud In element For Each noeudEnf In noeud.ChildNodes If noeudEnf.LocalName = "PropertyIdentifier" Then UrlSite = noeudEnf.InnerText Else If (noeudEnf.LocalName = "PropertyValue") Then NomSite = noeudEnf.InnerText End If End If MsgBox(NomSite & " à " & UrlSite) Next Next End Sub End Class
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Sub Button2_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button2.Click Dim oXL As Excel.Application Dim oWB As Excel.Workbook Dim oSheet As Excel.Worksheet Dim oRng As Excel.Range ' Start Excel and get Application object. oXL = CreateObject("Excel.Application") oXL.Visible = True ' Get a new workbook. oWB = oXL.Workbooks.Add oSheet = oWB.ActiveSheet ' Add table headers going cell by cell. oSheet.Cells(1, 1).Value = "N° Dossier" oSheet.Cells(1, 2).Value = "NomPatient" oSheet.Cells(1, 3).Value = "PrenomPatient" oSheet.Cells(1, 4).Value = "DateNaissance"