We have a string field which can contain XML or plain text. The XML contains no header, and no root element, i.e. is not well formed.
header, and no root element, i.e. is not well formed.
We need t
try { XmlDocument myDoc = new XmlDocument(); myDoc.LoadXml(myString); } catch(XmlException ex) { //take care of the exception }