Instance Document Attributes
The W3C XML Schema Language defines four attributes in the http://www.w3.org/2001/XMLSchema-instance
namespace (here mapped to the xsi
prefix), which are attached to elements in the
instance document rather than elements in the schema.
These are as follows: xsi:nil
,
xsi:type
, xsi:schemaLocation
, and xsi:noNamespaceSchemaLocation
. All four of
these attributes are special because the schemas do not need to
declare them.
Get XML in a Nutshell, 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.