added XMLSegment to Output class