I want to send html response in xmlelement web method. But When I run in console application to send html response, it raises error. It is not recognized html in xml response.
ReqErrxml = "<?xml version='1.0' encoding='utf-8' ?>" +
"<DATA>" +
"<HTMLCODE>" + html_code + "</HTMLCODE>" +
"</DATA>";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(ReqErrxml);
return xmlDoc.DocumentElement;
}
Request you to guide me for this problem.