Reading XML
Hi all,
I have XML file:
Code:
sample date 1
sample name 1
sample date 2
sample name 2
sample date 3
sample name 3
...
I am using XmlTextReader to read the XML file.
Code:
XmlTextReader reader = new XmlTextReader(FILENAME);
while (reader.Read()) {
...
}
I need to insert the events in the local SQL database, how would i go about looping through the events?
Thanks.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted May 7, 2007, 12:10 AM EDT
Dim ds as New DataSet
ds.ReadXml(pathToXml)