i have a xml response in string..
string rerricingresponsexml= xmlvalue;
the xmlvalue is
<?xml version="1.0" encoding="UTF-8"?>
<Repricing>
<Flights>
.....
</Flights>
</Repricing>
Now i want to extract <Flights> to \</Flights>
I tried
XmlDocument doc = new XmlDocument();
doc.Load(rerricingresponsexml);
XmlNode headerNode = doc.SelectSingleNode("RePricing");
if (headerNode != null)
{
string headerNodeXml = headerNode.OuterXml;
}
But it says Illegal character in xml.. Any help please..