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
Simply use Dataset.getXml():
Dataset.getXml()
doc.LoadXml(ds.GetXml());