Fixing System.Xml.XPath.XDocument implementation

Previous implementation was simple find and replace.

Previously XPath.XDocument and XDocument in one project and XPath implementation was using internal APIs. Proposed implementation is using public surface only.

Test coverage is coming in next PRs since it is significantly spamming PR when in single.