i have an xml like this
need to covert this into xml like
i have an xml like this
need to covert this into xml like
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Parveen SiwachPosted May 17, 2013, 7:15 AM
khalid tahaPosted May 17, 2013, 7:13 AM
Parveen SiwachPosted May 17, 2013, 7:00 AM
string xml =
@"
xml = System.Web.HttpUtility.HtmlDecode(xml);
Hop this will solve your problem.
Jignesh TrivediPosted May 17, 2013, 5:53 AM
hi,
you can pleace < and > with < and >
try following code111</componentId><componentId>112</componentId><componentId>113</componentId> ";
string MYXML = "
Console.WriteLine(MYXML.Replace("<","<").Replace(">",">"));
Console.WriteLine(Regex.Replace(Regex.Replace(MYXML, @"(\<)", @"<"), @"(\>)", @">"));
hope this will help you.
VulpesPosted May 17, 2013, 5:50 AM
Pankaj RanaPosted May 17, 2013, 5:20 AM