// XmlDataSource Setup
XmlDataSource xds = new XmlDataSource();
xds.Data = @"
<attributes>
<attribute>ATTR1</attribute>
<attribute>ATTR2</attribute>
</attributes>";
xds.XPath = @"attributes/attribute";
xds.DataBind();
The XmlDataSource
is used to render and modify contents in a Telerik RadGrid. How do I access the in-memory xml? I'd like to set it as a string value in a dto so it can be persisted in a database record.
MSDN XmlDataSourse.Save()
Docs:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.xmldatasource.save.aspx