Working towards the next version of the SWIM Supporting Material

Page tree

Working towards the next version of the SWIM Supporting Material

Skip to end of metadata
Go to start of metadata


This guidance shows how requirements concerning the concepts found in an information definition can be satisfied using the structures found in the XML Schema Definition language.The guidance applies to:

Mapping of requirement to XML Schema definition language


Corresponding structure in XSD


General Requirements for Information Definitions

SWIM-INFO-006 Information definition namespace
XSD namespaces

SWIM-INFO-007 Information definition concepts


namexs:element name
<xs:element name="SimpleMessage">
<xs:element name="SimpleMessage">
<definition>Definition of the element/concept</definition>
data type

xs:element type or

xs:restriction base

<xs:element name="name" type="xs:string">


<xs:restriction base="xs:double"/>
SWIM-INFO-008 Unique identifiers for concepts
xs:element id
<xs:element name="status" id="abcd"/>

Requirements coming from SWIM-SERV-022

Additional Requirement on Exchanged Information

cardinality (optional, conditional, mandatory)

xs:element minOccurs and maxOccurs

<xs:element ref="sid:status" minOccurs="0" maxOccurs="unbounded"/>

data type constraint



value range constraint


<xs:simpleType name="messageSequenceType">
<xs:restriction base="xs:int">
<xs:minExclusive value="1"/>
<xs:maxExclusive value="100"/>

special value constraint


<xs:simpleType name="statusType">
<xs:restriction base="xs:string">
<xs:enumeration value="open"/>
<xs:enumeration value="closed"/>

character set restrictions

xml encoding

<?xml version="1.0" encoding="UTF-8"?>

structure and relevant relationships

combination of sequence, choice, base, etc.

Too many to show!