I need to store data in, update, and read data from an XML file.
An INI structure worked fine:
[Zone 01]
a= 123
b= xyz
c= etc
[Zone 02]
.....
I've been look around the net and cannot find a simple comprehesive example
on how to convert this to
VB.Net and System.Xml. Biggest problem is that the
sample files do not seem to be structure such that the data can be retrived
by "zone name" from the above example.
First issue is how do I structure the XML file to make updates and queries?
I'm working with this design currently:
<Zones>
<Zone Name="Zone 01">
<a>123</a>
<b>xyz</c>
<c>etc</c>
</Zone>
<Zone Name="Zone 02">
<a>2</a>
....
</Zones>
Is this a good layout for SIMPLE adds, updates and reading?
I'm really lost beyond the layout too - I'm thinking SelectNodes and
SelectSingleNodes is the way to go to get data out but I can't get any XPATH
strings to work with the above design.
Haven't a clue on adds and updates.
Should I be using a different design? I need to work with the data a "zone"
at a time, usually only one zone during a session.
Does anyone know of a good book/sample/white paper that addresses the above
application in
VB?
Or perhaps this is simple enough a few examples of adds(new zones), updates,
and reads could be posted?
Thanks!