crear XML vb 2005

crear un xml de vb 2005

Page 1 of 1

0 Replies - 1750 Views - Last Post: 26 January 2010 - 11:58 AM Rate Topic: -----

#1 bighunter  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 26-January 10

crear XML vb 2005

Posted 26 January 2010 - 11:58 AM

como crear un archivo xml desde vb 2005

Dim arbol As New XmlDocument
Dim nodo As XmlNode
Dim a As String
Dim Arr(0 To 3) As String
Arr(0) = "hola"
Arr(1) = "mundo"
Arr(2) = "adios"
Arr(3) = "mundo"
nodo = arbol.CreateElement("Sites")
arbol.AppendChild(nodo)
For Each a In Arr
'Arr es un array con los elementos a poner en el xml
nodo = arbol.CreateElement("value")
nodo.InnerText = a.ToString
arbol.DocumentElement.AppendChild(nodo)
Next
arbol.Save("C:\Fichero.xml")

Is This A Good Question/Topic? 0
  • +

Page 1 of 1