refactored parser loading to use XDocument

Change-Id: Id0e0fac80003c1742bcf979989141cb3bce786d5