I want to use an xml-file for storing my program data. The structure of the xml looks like this:
<?xml version="1.0" standalone="yes"?>
<Data>
<Projects>
<Project>
<Name>Name1</Name>
<Description>Description1</Description>
</Project>
<Project>
<Name>Name2</Name>
<Description>Description2</Description>
</Project>
</Projects>
</Data>
I want to use a DataSet
since it offers the easy reading and writing of xml structures. But the question is, how to read and write the values of the <Project>
-Nodes? I can access the <Projects>
-Node, but then i don't know how to continue, since the single Projects aren't tables i guess. So, how can i access the nodes in the depth three (Data->Projects->Project)? I think this must work somehow, since reading the file and outputting it on the console does work.