noNamespaceSchemaLocation

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - XML Schemas

noNamespaceSchemaLocation

The noNamespaceSchemaLocation attribute references an XML Schema document that does not have a target namespace.

<xsi:noNamespaceSchemaLocation="anyURI" >

Attributes

anyURI
The location of a schema that contains unqualified (a schema without a namespace) schema constructs.

Remarks

An XML Schema is not required to have a namespace. To specify the location for an XML Schema that does not have a target namespace, use the noNamespaceSchemaLocation attribute. The XML Schema referenced in this attribute cannot have a target namespace. Because this attribute does not take a list of URLs, you can only specify one schema location.

According to the World Wide Web Consortium (W3C) XML Schema Recommendation, XML instance documents can have both xsi:schemaLocation and xsi:noNamespaceSchemaLocation attributes specified.

Example

The following example shows the use of the xsi:noNamespaceSchemaLocation attribute on an instance document that contains unqualified elements.

<person xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
   xsi:noNamespaceSchemaLocation="http://adventure-  works.com/schemas/person.xsd">
   <name>John</name>
   <height>59</height>
</person>

See Also

XML Schema Reference | XML Schema Elements | XML Schema Instance Attributes |schemaLocation