1
任何人都可以幫助我與xsd。 我的XSD看起來像:在XSD中通過xsi:nil =「true」和nillable =「true」清空XML元素?
<xs:element name="StringExample" type="xs:string" nillable="true" />
<xs:element name="DateTimeExample" type="xs:dateTime" nillable="true"/>
而且我想,如果StringExample
等於""
(空白)或無效時,XML應該是這樣的:
<StringExample />
如果DateTimeExample等於null那麼xml應該看起來如下:
<DateTimeExample />
現在我明白了。謝謝你的信息! – user2388887