Hi Shai,
I saw you other message, the most easiest way is to make a dataset,
I made some examples below. I did not make in the IDE so it is probably with
errors.
I think this wil fits your problem?
Cor
\\\\
dim ds as new dataset
if file.exist ("c:\test1\testxml.xml") then
ds.ReadXml("c:\testxml.xml", XmlReadMode.ReadSchema)
Dim dr As DataRow = ds.Tables(0).Rows.Find("mynumber")
if not dr Is Nothing Then
mySQLstring = dr.item("mySqlString").tostring
else
'errormessage
Else
'errormessage
End If
////
\\\\
To create this dataset is.
dim ds as new dataset
Dim dt As New DataTable("SqlStrings")
dt.Columns.Add(New DataColumn("mySqlStringnumber",
Type.GetType("System.Int32")))
dt.Columns.Add(New DataColumn("mySqlString", Type.GetType("System.String")))
Dim keys(0) As DataColumn
keys(0) = dt.Columns("mySqlStringnumber")
dt.PrimaryKey = keys
ds.Tables.Add(dt)
ds.WriteXml("c:\testxml.xml", XmlWriteMode.WriteSchema)
///
\\\
To add the rows you can use the normal dataset instructions for that
////