W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2002

Re: The usage of nillable

From: Jeni Tennison <jeni@jenitennison.com>
Date: Fri, 26 Apr 2002 18:09:58 +0100
Message-ID: <72375562340.20020426180958@jenitennison.com>
To: jingkun.hu@philips.com
CC: xmlschema-dev@w3.org
Hi Jingkun,

> I assume that the nillable attribute be only applied to the text
> value of an element, e .g. <shipDate xsi:nil="true"/>, here shipDate
> only contains simpleContent. However, I couldn't find the approve
> for it. Is it valid if applying it to a complexType element, e.g.
> <shipInfo xsi:nil="true"/>, here shipInfo contains a sequence of
> elements?

As far as I can tell, it's perfectly valid to use xsi:nil on an
element that has a complex type, as long as that element has been
declared nillable of course.



Jeni Tennison
Received on Friday, 26 April 2002 13:10:16 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:56 UTC