I\'ve been stuck with this problem for a few hours and can\'t seem to figure it out, so I\'m asking here :)
Alright, I\'ve got this function:
private
if ds is your dataset..
you can use:
ds.getXml();
this helps in getting XML