i have data looks this:
<city code="lon"> <![cdata[london]]> </city> <item code="ibi3"> <![cdata[ibis excel]]> </item>
and have classes auto-generated:
public class city { [xmlattribute(attributename = "code")] public string code { get; set; } [xmlelement(elementname = "item" )] public string text { get; set; } } [xmlroot(elementname = "item")] public class item { [xmlattribute(attributename = "code")] public string code { get; set; } [xmltext] public string text { get; set; } }
when deserialize xml string, null value text....how deserialize cdata?
i using restsharp serializer, switched xml.serializer , well