training set from xml data