An Updategram is a data structure that is used to specify a
change in the data in the database tables. INSERT, UPDATE, and DELETE commands
are represented in an Updategram by the difference of the image of the data
before and the image of the data after a change.
One way to run an XML Updategram is to save the Updategram
as a file and then run the file in the URL as a template file.
Sample Updategram
Listing 1 – Sample Updategram
<ROOT xmlns:updg="urn:schemas-microsoft-com:xml-updategram">
<updg:sync>
<updg:before>
<City updg:id="1" Name="HYD"/>
<City updg:id="2" Name="BGL"/>
</updg:before>
<updg:after>
<City updg:id="1" Name="Hyderabad"/>
<City updg:id="2" Name="Bangalore"/>
</updg:after>
</updg:sync>
</ROOT>
NOTE: All updategram/diffgrams nodes with siblings must have
ids, either user specified ones or mapping schema based key field id.