I\'m new to C# development so maybe a very simple question here.
I\'m trying to get an output which starts as this:
private string RemoveXmlDefinition(string xml) { XDocument xdoc = XDocument.Parse(xml); xdoc.Declaration = null; return xdoc.ToString(); }
XmlWriterSettings settings = new XmlWriterSettings(); settings.OmitXmlDeclaration = true;