Hi,
How do i write to xml format for the below data. This is sample parsing data that i need to save in xml format. Please guide me !
<field id="0" value="0210"/>
<field id="2" value="00"/>
<field id="3" value="320000"/>
<field id="4" value="000000068519"/>
<field id="5" value="000000000000"/>
<field id="7" value="5465464545"/>
<field id="11" value="000021"/>
<field id="12" value="05488565"/>
<field id="13" value="1014"/>
<field id="15" value="1015"/>
<field id="32" value="040"/>
<field id="34" value=""/>
<field id="37" value="000000000234"/>
<field id="38" value=""/>
<field id="39" value="00"/>
<field id="48" value="0200900000001620283889454 040001 ANDREW 1000000000110A
000000068519 000000000000 000000000000"/>
<field id="49" value="360"/>
<field id="52" value=""/>
<field id="54" value=""/>
<field id="102" value=""/>
<field id="103" value=""/>
i have done as below but it seems not what i expect for.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim writer As New XmlTextWriter(Application.StartupPath & "1.xml", System.Text.Encoding.UTF8)
writer.WriteStartDocument(True)
writer.Formatting = Formatting.Indented
writer.Indentation = 2
writer.WriteStartElement("")
writer.WriteEndElement()
writer.WriteEndDocument()
writer.Close()
'createNode()
End Sub