Parser for xml histograms