XML Schema Documentation

Table of Contents

top

Schema Document Properties

Target Namespace http://www.example.com/ns1
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations have no namespace.
  • By default, local attribute declarations have no namespace.
Schema Composition

Declared Namespaces

Prefix Namespace
xml http://www.w3.org/XML/1998/namespace
xs http://www.w3.org/2001/XMLSchema
ns1 http://www.example.com/ns1
ns2 http://www.example.com/ns2
Schema Component Representation
<xs:schema targetNamespace="http://www.example.com/ns1">
<xs:include schemaLocation="schemaNS1-part1.xsd"/>
<xs:include schemaLocation="schemaNS1-part2.xsd"/>
<xs:import namespace="http://www.example.com/ns2" schemaLocation="schemaNS2.xsd"/>
...
</xs:schema>
top

Global Declarations

Element: master

Name master
Type Locally-defined complex type
Nillable no
Abstract no
XML Instance Representation
<ns1:master>
<ns1:part1> ... </ns1:part1> [1]
<ns1:part2> ... </ns1:part2> [1]
<ns2:test> ... </ns2:test> [1]
</ns1:master>
Schema Component Representation
<xs:element name="master">
<xs:complexType>
<xs:sequence>
<xs:element ref=" ns1:part1 "/>
<xs:element ref=" ns1:part2 "/>
<xs:element ref=" ns2:test "/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Generated by xs3p. Last modified: