moved XML generation code from XAmpleTrace to XAmpleParser

Change-Id: Iea6bff8d296ed90d29d28d721379ebb85a745c2f