Hi EveryOne, I am having a real problem, which i am unable to resolve. The problem is that i am tring to convert the datset using XmlDataDocument, following is the code. My Problem is that the while assigning the InnerXml to string variable stream. it add escape
character to my xml stream. after the code is the example...of xml output. A help will be really appreciated public void PostFeedbackResponseAsDataSet(ResponseDataSet response,Int32 feedbackMaximumResponseSize) { try { String stream = ""; XmlDataDocument xmldom
= new XmlDataDocument(response); if(xmldom.HasChildNodes) { stream = xmldom.FirstChild.InnerXml.ToString(); if(stream.Length > feedbackMaximumResponseSize) { throw(new ArgumentException("Feedback response exceeds maximum allowed size for this feedback"));
} DAL.InsertResponses(stream); } } catch(Exception e) { Utility.Logger.WriteEntry(e.Message +"\t" + csStackTrace + e.StackTrace); throw(e); } }
ZINA
Member
10 Points
2 Posts
escape character problem in XML
Aug 05, 2003 05:35 PM|LINK