I have a simple application that uses an XML file to store it's data. That
means I don't have a seperate database. In order to read the data I created a
DataSet that reads my XML file with the .ReadXml() method.
1.
I want to manipulate the resulting dataset, preferably with SQL queries. But
the documentation states that I need to have a data connection to do this.
But if I am only using an XML file, how do I do this without a data
connection?
2.
When I fill the dataset I have no trouble reading the column names, but how
do I read the attributes? For instance, this is a portion of my XML file:
<partyList xmlns="http://tempuri.org/DataSchema.xsd">
<party xmlns="http://tempuri.org/DataSchema.xsd">
<Name>CDA</Name>
<Leader>
<Name>J.P. Balkenende</Name>
</Leader>
</Name>
</party>
</partyList>
To read the Party Name I use dsParties.Tables("Party").Rows(0).Item("Name"),
but how do I access the Leader Name ?
Any help on these 2 questions would be appreciated!
-Chris