getXML function implemented for class Dataset