Refactor WordGrammarDebugger to use XDocument rather than XmlDocument

Change-Id: I5aceaf4faa253579db4bd00dee496d08aa0618c3