Use XDocument instead of XmlDocument