27.4. Updategrams

Database data can be modified using Updategrams. Suppose you want to delete a reservation that was previously created. You use an Updategram to accomplish this. Updategrams can be used to insert, edit, or delete data from the database. Listing 27.6 shows an example of an Updategram. In the listing the before element has data but the after has none. The result is the deletion of the row specified.

Listing 27.6. Removing a Reservation
 <removeReservation xmlns:updg="urn:schemas-microsoft-com:xml-updategram"> <updg:header> <updg:param name="rid"/> </updg:header> <updg:sync> <updg:before updg:returnid="record"> <reservation updg:at-identity="record" id_reservation="$rid"/> </updg:before> <updg:after/> </updg:sync> </removeReservation> ...

Get XML Schema Complete Reference, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.