I am trying to parse an XML with CDATA elements...my below code blows up if content in CDATA is xml encoded...is there any way i can decode all the xml before i parse..
---Code to parse
if (formText.FirstNode.NodeType == XmlNodeType.CDATA)
{ return formText.Value; }
else { throw new applicatinException("ERROR")}
this code works if formText has
"<Text><![CDATA[Sample Text<b>BoldText </b>]]></m:FormText>"
but blows up if formText has (encoded values)
"<Text><[CDATA[Sample Text <b>BoldText</b> ]]></m:FormText>"