I get this error "Start tag on line 1 does not match the end tag of 'document'".
string rawXml = "<?xml version='1.0' ?>" +
"<document>" +
"<![CDATA[" +
"<topic>" +
"My test" +
"</topic>" +
"]]>" +
"</document>";
Error occurres when I try to execute a stored procedure which send this xml as a parameter.
var xmlDoc = new XmlDocument();
xmlDoc.LoadXml(rawXml);
DataResultXElement drx = ss.xelem_Query(string.Format("exec Topic_Update '{0}', '{1}'", sessionId, xmlDoc.InnerXml));
If I remove it works, but I need CDATE to store data properly in the database.
Should I format the string differently? Thanks!