The general format of an updategram is:

<sql:sync xmlns:sql="xml-sql">
 <sql:before>
    <TABLENAME [sql:id="value"] col="value" col="value"?../>
 </sql:before>
 <sql:after>
    <TABLENAME [sql:id="value"] [sql:at-identity="value"]
      col="value" col="value"?../>
 </sql:after>
</sql:sync>

or

<sql:sync xmlns:sql="xml-sql">
        <sql:before>
                <TABLENAME [sql:id="value"]>
                   <col>"value"</col>
                   <col>"value"</col>
                   ...
                </TABLENAME>
                ...
        </sql:before>
        <sql:after>
                <TABLENAME [sql:id="value"] [sql:at-identity="value"]>
                   <col>"value"</col>
                   <col>"value"</col>
                   ...
                </TABLENAME>
                ...
        </sql:after>
</sql:sync>