Changed parser trace result to be a XDocument

Change-Id: I8dbdf07e17ef6907604e3f56aa0328572347fade