Hi,
I need some help extracting information from a XML file. So far I am able to extract data from elements that look like the following:
<element1>Element Information</element1>
<element2 attribute=”Element 2 Attribute Information” />
But I have come across an element that has got me stumped:
<element3><![CDATA[Information that I need to extract]]></ element3>
So I need some help working out how to get the information between <![CDATA[ and ]]>. Either ignore it or be able it to be viewed as a sub-element of element3.
Here is the code I use to extract the information:
if (topElement.Element("element1") == null)
{
l.element1Information = "";
}
else
{
l.element1Information = topElement.Element("element1").Value;
}