Click to See Complete Forum and Search --> : Client XML editor?


aidanmack
11-23-2006, 03:47 AM
Hi I am looking to build a page that a client can login to and the edit a XML page.
Im not sure where to start
Any ideas??

I was looking at Microshafts Express Web Developer...

so far i created a

XmlDateSource from the "data" section from the asp.net controls.
i then used the common tasks to set it up so it looks my xml page.
I then draged on a asp gridview and set that up to look at my xml data source.
In my tag properties for that gridview i set AutoGenerateEditButton to "true"

When i run it i can see my xml in the grid view.. which is great (very easy
to set up...i was impressed)

but when i click on edit i get a error page up
with a description of...
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

and then a massive stack trace:...

Is this goin to be complicated?? or is there anyeasier way for me creat a
page where by i can edit xml?



Thanks
Aidan

scottrickman
12-20-2006, 02:00 PM
Get a dataset using the DataSet.ReadXML method, use this as a data source for your datagrid, create the edit controls in the datagrid which will update the dataset then use the DataSet.WriteXML method to write this back to the XML document. This isn't a very good solution for concurrent users; if two users get the original XML and both update different records the second update will write the original record over the record that the first update had changed.