hi,
How to parse an xml which is having and Url which contains '&' sign?
I tried replacing it with & still has the same error.
my code is
Reagards
Veena
How to parse an xml which is having and Url which contains '&' sign?
I tried replacing it with & still has the same error.
my code is
Code:
var msgs = from g in xDoc.Descendants().Descendants("msgs")
select new
{
messageNum = g.Element("msg_number").Value,
message = g.Element("message").Value,
URL = g.Element("URL").Value,
};
foreach (var msg in msgs)
{
msgList.Add(new MsgClass(msg.messageNum, msg.message, msg.URL));
}
Reagards
Veena
Comment