c# - Remove the escape sequence '\' from string to convert it to XmlDocument -
c# - Remove the escape sequence '\' from string to convert it to XmlDocument -
i have web service returns struct object, response next xml string. need load xmldocument object how rid of escape sequences in string. '\' every '"' causing error.
<?xml version=\"1.0\" encoding=\"utf-8\"?> <quote xmlns:xsi=\"http://www.w3.org/2001/xmlschema-instance\" xmlns:xsd=\"http://www.w3.org/2001/xmlschema\" xmlns=\"http://tempuri.org/\"> <price>19656</price> </quote>
use regex.unescape method.
string unescapedstring = regex.unescape(textstring);
c# xml escaping
Comments
Post a Comment