I have a schema that I load into classes that mirror the schema using
the XmlSerialization. The schema contains an xsd:Any that I load into
'Extra' as follows:
[XmlElement(ElementName="Extra")] public XmlNode Extra { get { return
extra;} set { extra = value;}}
However, if I have:
<Something>
<Extra>
<a>something</a>
<b>another thing</b>
</Extra>
</Something>
I would expect Extra to contain an XmlNode of :
<Extra>
<a>something</a>
<b>another thing</b>
</Extra>
But it doesn't : it contains :
<a>something</a>
Is there any attributes etc I can set to get the full element to be
retained ?
TIA
Dominic