Convert XmlDocument to LINQ XDocument
XDocument input = XDocument.Load(new XmlNodeReader(oXInstance));