Replacing XmlDocument with XDocument