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.
public XmlElement GenerateHTMLResponse()
{
ReqErrxml = "" +
"" +
"" + html_code + " " +
"";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(ReqErrxml);
return xmlDoc.DocumentElement;
}
Request you to guide me for this problem.
Replies
Know the answer? Post it — somebody with the same question will find it here.