Quantcast
Channel: modificar nodo de un xml
Viewing all articles
Browse latest Browse all 5

modificar nodo de un xml

$
0
0

como hago para que un nodo de un xml salga de la siguiente manera

<factura id="comprobante" version="1.0.0">

------------------

------------------ contenido del xml

</factura>

hay alguna manera de que salga asi porque con el codigo que tengo sale de esta forma 

<factura>

</factura> 

pero eso no me sirve para lo que estoy trabajando

el codigo que uso para llenar el xml es el siguiente

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 

Dim writer As New XmlTextWriter("Facturas.xml", System.Text.Encoding.UTF8) 
writer.WriteStartDocument(True) 
writer.Formatting = Formatting.Indented 
writer.Indentation = 2 
writer.WriteStartElement("factura")

-------------------

-------------------

writer.WriteEndElement() 
writer.WriteEndDocument() 
writer.Close()

End Sub


Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images