Name

xsi:nil

The xsi:nil attribute is used to permit cases in which an element explicitly indicates that it doesn’t have any content. If an empty element includes an xsi:nil="true" attribute, and if the declaration indicates that the element is nillable, the schema processor will accept the element as valid even if the schema requires that element to have content.

Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.