First let me say I am familar with programming, but not familiar with VB.net.
I am loading an existing XML document with this procedure
Dim xmlFile As String = "..\data\Produc ts.xml"
Dim xmlDoc As XmlDocument
Private Sub Zadig_Load(ByVa l sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim xmlTr As New XmlTextReader(x mlFile)
While xmlTr.Read
If xmlTr.Name = "id" AndAlso xmlTr.NodeType =
XmlNodeType.Ele ment Then
cmbProducts.Ite ms.Add(xmlTr.Re adString)
End If
End While
xmlTr.Close()
xmlDoc = New XmlDocument
xmlDoc.Load(xml File)
End Sub
If I have a NEW form (IE-Products.vb), will I be able to reference the XML
doc in Memory?
Also, is there a good web reference that shows how to update
XML data (In memory) and then write them back out to a file?
Thanks,
Michael
I am loading an existing XML document with this procedure
Dim xmlFile As String = "..\data\Produc ts.xml"
Dim xmlDoc As XmlDocument
Private Sub Zadig_Load(ByVa l sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim xmlTr As New XmlTextReader(x mlFile)
While xmlTr.Read
If xmlTr.Name = "id" AndAlso xmlTr.NodeType =
XmlNodeType.Ele ment Then
cmbProducts.Ite ms.Add(xmlTr.Re adString)
End If
End While
xmlTr.Close()
xmlDoc = New XmlDocument
xmlDoc.Load(xml File)
End Sub
If I have a NEW form (IE-Products.vb), will I be able to reference the XML
doc in Memory?
Also, is there a good web reference that shows how to update
XML data (In memory) and then write them back out to a file?
Thanks,
Michael
Comment