Avatar

Level 5

This code will give the data xml.

Write it in the click event

   var vv = xfa.record;
   var ss = vv.saveXML('pretty');

  app.alert(ss);

Is this what you are looking for?

If you are looking for the form xml, then write var ss = xfa.form.saveXML('pretty')

Hope this helps.

kc