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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Parveen SiwachRank #6,758 · 257 reputationPosted May 17, 2013, 3:15 AM EDT
Pankaj RanaRank #2,270 · 620 reputationPosted May 17, 2013, 1:20 AM EDT
VulpesRank #55 · 29.2K reputationPosted May 17, 2013, 1:50 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted May 17, 2013, 1:53 AM EDT
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.
Parveen SiwachRank #6,758 · 257 reputationPosted May 17, 2013, 3:00 AM EDT
string xml =
@"
xml = System.Web.HttpUtility.HtmlDecode(xml);
Hop this will solve your problem.
khalid taha12 reputationPosted May 17, 2013, 3:13 AM EDT