N
nick_nw
Hi,
Given the following XML (cut down version for explanation, actual doc
much larger).
<?xml version="1.0" encoding="utf-8" ?>
<Stuff>Any string can go in here. It could even be well or badly
formed XML.</Stuff>
When I try to deserialize this document (all I want is the string
content of <Stuff> I get an error if <Stuff> contains XML.
How can instruct the XmlSerializer to ignore the contents of the
<Stuff> element? The only thing I can guarantee is that <Stuff> will
never contain a "</Stuff>" or "<Stuff>" string, but it might contain a
"/>" string.
Am I trying to do the impossible?
Is there a better way to achieve what I want to achieve?
Thanks in advance,
Nick
Given the following XML (cut down version for explanation, actual doc
much larger).
<?xml version="1.0" encoding="utf-8" ?>
<Stuff>Any string can go in here. It could even be well or badly
formed XML.</Stuff>
When I try to deserialize this document (all I want is the string
content of <Stuff> I get an error if <Stuff> contains XML.
How can instruct the XmlSerializer to ignore the contents of the
<Stuff> element? The only thing I can guarantee is that <Stuff> will
never contain a "</Stuff>" or "<Stuff>" string, but it might contain a
"/>" string.
Am I trying to do the impossible?
Is there a better way to achieve what I want to achieve?
Thanks in advance,
Nick