By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,965 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,965 IT Pros & Developers. It's quick & easy.

XmlDataSouce and XML written/read by DataTable

gchq
P: 96
Hi there

It is required that some XML data be read by DataTable - this seems to require the xs:element layout :-

<XmlDemo>
<id>0</id>
<Status>Single</Status>
<Lower>0</Lower>
<Upper>8389</Upper>
<Percent>20.40</Percent>
<Amount>0</Amount>
<Less>0</Less>
</XmlDemo>

as opposed to id="0" Status="Single" Lower="0" .....

It seems that the former can be read by DataTable and the latter can't, and the former can't be read by XmlDataSouce but the latter can...

The question I have - is there any way to both retrieve this data from the XML file and write back changes using XmlDataSource and GridView? I know I can bind the GridView to the DataTable DataSource, but that doesn't help with updating the file... Sigh.....
Jul 29 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.