[Update: Added some more details as I spotted more complexity to it!]
I need help modeling an API response that has CDATA everywhere. It looks like this:
<MYAPI>
<SomeItem>
<Description>
<![CDATA[
//Something here
]]>
<InnerDescription>some string here</InnerDescription>
<InnerDescription somethingType = "some type">
<![CDATA[
//Something here
]]>
</InnerDescription>
</Description>
</SomeItem>
</MYAPI>
I want to create c# classes for this response but I'm clueless as to how to model the sections that have CDATA. And also the <InnerDescription> </InnerDescription>
have cdata
content and string
content. How would I model the following classes?
public class Description {
??
}
public class InnerDescription {
//Has both cdata and string
??
}
Thank You and I appreciate your help!