i have the following XML that i need to parse in C#:
<data>
<customer_id><![CDATA[1414301]]></customer_id>
<last_modified_date><![CDATA[2011-08-14 11:58:58]]></last_modified_date>
<customer_first_name><![CDATA[joe]]></customer_first_name>
<customer_last_name><![CDATA[blow]]></customer_last_name>
</data>
into an object called Result
public class Result
{
public int customer_id;
public string customer_first_name;
public string customer_last_name;
}
the one thing that i am trying to determine is how to get rid of the
<![CDATA[]]
and just parse out the regular values.
What is the best way of converting this XML to the object above that will support the CDATA syntax above
Not sure what you mean by ‘parse’. If you use an XML DOM parser (or any other type), then you have transparent access to the CDATA values.