RE: XmlDataSource

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

When you use DataFile property to specify a xml file for the XmlDataSource
control, it will load the xml file into an internal XmlDocument (you can
get this document by using the XmlDataSource's GetXmlDocument method). When
you call XmlDataSource.Save method, the internal XmlDocument will be saved
to the file specified by the DataFile property (the file will be
overwritten).

I understand your objective here is to "rollback" the changes made to the
XmlDataSource since the last time you used the save method.

Based on my understanding, to "rollback" the changes, you just need to
re-bind the XmlDataSource, this will make it to re-read from the xml file
specified by property DataFile.

I hope I haven't misunderstood anything. Please feel free to let me know if
there's anything unclear. Thanks.


Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: TreeView Dynamic XML Binding
    ... Also, when using the XmlDataSource, I did not have to do the bind operations. ... Treeview, and every step of the way I've hit problems. ... into an .xml file, add the .xml file to my project, and tell the TreeView ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: XmlDataSource caches between page loads?
    ... The XmlDataSource is meant to keep a synchronized version of an XML file in ... It will cache the data the CacheDuration time that you set (I ... you're not using a filename it loads the same data for all XmlDataSource ... On 28 apr, 03:09, Peter Bromberg ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Database testing with automated verifications of your modifications ?
    ... Using some kind of capture/playback tool? ... Or some specify the changes in some xml file? ... but some XML file could be okay too. ... .NET that can be used for database testing? ...
    (comp.software.testing)
  • Re: Database testing with automated verifications of your modifications ?
    ... Using some kind of capture/playback tool? ... Or some specify the changes in some xml file? ... but some XML file could be okay too. ... Define the expected database changes that I want my following code ...
    (comp.software.testing)
  • Is it Possible to Bind an Asp Xml Control to Repeater
    ... The reason an XmlDataSource doesn't work is because the Xml file isn't ... will be on the client as well. ... of the child and parent nodes. ...
    (microsoft.public.dotnet.framework.aspnet)