decimal list type : list « XML Schema « XML

decimal list type

File: Data.xml

<?xml version="1.0"?>
<numbers>12 34.5 18.2 5</numbers>

File: Schema.xsd

<?xml version="1.0"?>
<xs:schema xmlns:xs="">

  <xs:element name="numbers" type="number-list" />

  <xs:simpleType name="number-list">
    <xs:list itemType="xs:decimal" />



Related examples in the same category

1.A list datatype can be done by embedding a xs:simpleType element
2.Apply a facet constraining the length
3.To define a string datatype of 100 and 200 words, each having a length of less than 15 characters