You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ja...@bnb.gov.br on 2003/06/11 16:19:54 UTC
"nillable" attribute inside of element
Hi,
Could anyone help me?
Given the following example below, What does "nillable" mean?
Thanks,
José airton
<complexType name="Book">
<sequence>
<element name="isbn" nillable="true" type="xsd:string" />
<element name="year" type="xsd:int" />
<element name="title" nillable="true" type="xsd:string" />
</sequence>
</complexType>
Re: "nillable" attribute inside of element
Posted by Brian Ewins <Br...@btinternet.com>.
jairton@bnb.gov.br wrote:
> Hi,
>
> Could anyone help me?
Yup, probably google, every single result from
<http://www.google.com/search?q=nillable> is relevant. (I don't mean to
be totally obnoxious saying this, you might find an explanation you
prefer following the link)
>
> Given the following example below, What does "nillable" mean?
>
it means they are allowing you to do:
<Book>
<isbn xsi:nil="true"/>
<year>2003</year>
<title xsi:nil="true"/>
</Book>
to indicate that the title and isbn are null, rather than just empty
strings.
<http://www.w3.org/TR/xmlschema-0/#Nils>
Hope this helped,
Baz
> Thanks,
>
> José airton
>
> <complexType name="Book">
> <sequence>
> <element name="isbn" nillable="true" type="xsd:string" />
> <element name="year" type="xsd:int" />
> <element name="title" nillable="true" type="xsd:string" />
> </sequence>
> </complexType>
>
>
>