Apologies if this is a silly question, I haven't really done anything with xml up until now.
I want to be able to deserialise some xml into a class that has a property of type object
. This property could be an int
, guid
or a string
. In the xml I would like this property to be defined as an attribute. I would have expected my xsd to look something like this:
<xsd:complexType name="MyClass">
<xsd:attribute name="MyProperty" type="xsd:anySimpleType" />
</xsd:complexType>
However, visual studio intellisense doesn't list the option, "xsd:anySimpleType". Is this an issue with intellisense or am I doing something inherently wrong?