Converted the XmlDocument to XDocument
Updated docs