I have a large config XML file that uses simple tags:
e.g
<tag1>"Data1"</tag1>
<tag2>"Data2"</tag2>
I read this file into a dataset then process the only row. This works very well - also updating the xml file is a breeze.
However some tags really need attributes so that further process may be carried out.
If i do the following:
<tag1>"Data1" cmd="Modify"</tag>
This item is ignored when the dataset reads the file. Is there a workaround. Using the example,I want to get hold of the "Data1" item and the cmd="Modify" attribute.
I don't want to use the xmlreader as resulting code is complex and messy. I'd rather stay with the Dataset because reading/writing to the xml file is easy. Any ideas.
Thanks for your help in advance.
Ken
e.g
<tag1>"Data1"</tag1>
<tag2>"Data2"</tag2>
I read this file into a dataset then process the only row. This works very well - also updating the xml file is a breeze.
However some tags really need attributes so that further process may be carried out.
If i do the following:
<tag1>"Data1" cmd="Modify"</tag>
This item is ignored when the dataset reads the file. Is there a workaround. Using the example,I want to get hold of the "Data1" item and the cmd="Modify" attribute.
I don't want to use the xmlreader as resulting code is complex and messy. I'd rather stay with the Dataset because reading/writing to the xml file is easy. Any ideas.
Thanks for your help in advance.
Ken