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.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Friday, 26 April 2002 13:10:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:30 GMT