道歉,如果这是一个愚蠢的问题,我到现在还没有真正用xml做过任何事情。xsd type =“anySimpleType”属性
我想能够将一些xml反序列化成类型为object
的属性的类。此物业可能是int
,或string
。在xml中,我希望将此属性定义为属性。我本来期望我的XSD看起来是这样的:
<xsd:complexType name="MyClass">
<xsd:attribute name="MyProperty" type="xsd:anySimpleType" />
</xsd:complexType>
但是,Visual Studio的智能感知未列出选项,“XSD:anySimpleType”。这是intellisense的问题,还是我在做一些固有的错误?
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/index.jsp?topic=/com.ibm.websphere.wps.620.doc/doc/cbo_usinganysimpl.html – 2012-02-15 05:25:40