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.
Listing 1 – Sample Updategram
<City updg:id="1" Name="HYD"/>
<City updg:id="2" Name="BGL"/>
<City updg:id="1" Name="Hyderabad"/>
<City updg:id="2" Name="Bangalore"/>
NOTE: All updategram/diffgrams nodes with siblings must have
ids, either user specified ones or mapping schema based key field id.