Skip to main content

XML namespace

XML Schema Definition (XSD)

The vocabulary a schema document is written in. Conventionally bound to xs: or xsd:.

xmlns:xs="http://www.w3.org/2001/XMLSchema"

This namespace holds the elements that make up a schema itself — <xs:element>, <xs:complexType>, and so on — plus the built-in datatypes such as xs:string and xs:dateTime that schemas refer to.

It is easy to confuse with XMLSchema-instance. This one appears in the schema; the instance namespace appears in the documents the schema validates.

URI
http://www.w3.org/2001/XMLSchema
Prefix
xs
Elements
schemaelementattributecomplexTypesimpleTypesequenceimport

Specification: W3C XML Schema Part 1

Get started

Bring order to the XML your team can't afford to ignore.

Create a free account and get a private workspace to search, validate, diff, and monitor your XML feeds, sitemaps, schemas, and vendor integrations.