Take a look at XMLUPDATEGRAM() Function.
>In my continue attempt to change the monolithic application to n-tier, I came across the following. I would like to pass an XML fro UI tier to BO tier so I need to create an XML file of changed field values. For example. Say the form is bound to view V_MYVIEW. User makes changes to some fields. Then I want to create an XML string that would consist of Field Name and Field New Value.
>
>
>FOR i = 1 TO FCOUNT()
> IF EVALUATE(FIELD(i)) <> OLDVAL(FIELD(i), "V_MYVIEW")
> *-- ! User made change to this field.
> *-- THIS IS WHERE AN ELEMENT OF XML WOULD BE CREATED BUT
> *-- I DON'T KNOW HOW.
> ENDIF
>ENDFOR
>
>
>Could anyone give me a sample of what code would go in the commented line above?
>
>Thank you.
--sb--