EntireX Version 9.7
 —  EntireX XML Mapping Editor  —

Mapping IDL Data Types to an XML Schema (XSD)

In the table below, the following metasymbols and informal terms are used for the IDL.

IDL Data Type Description XMM XSD
Anumber Alphanumeric string
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:string">
    <xsd:maxLength value="number"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>
AV Alphanumeric variable length string
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:string"></xsd:restriction>
 </xsd:simpleType>
</xsd:element>
AV[number] Alphanumeric variable length with maximum length string
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:string">
   <xsd:maxLength value="number"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>
Bnumber Binary binary
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:base64Binary">
   <xsd:length value="base64Length"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>

Note:
base64Length = 4 * rounded up(number /3)

BV Binary variable length binary
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:base64Binary"></xsd:restriction>
 </xsd:simpleType>
</xsd:element>
BV[number] Binary variable length with maximum length binary
<xsd:element name="name" form="unqualified"> <xsd:simpleType>
 <xsd:restriction base="xsd:base64Binary">
  <xsd:maxLength value="base64Length"/>
   </xsd:restriction>
 </xsd:simpleType>
</xsd:element>

Note:
base64Length = 4 * rounded up(number /3)

D Date date:yyyy-MM-dd
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:date"></xsd:restriction>
 </xsd:simpleType>
</xsd:element>
F4 Floating point (small) float
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:float"></xsd:restriction>
 </xsd:simpleType>
</xsd:element>
F8 Floating point (large) float
<xsd:element name="name" form="unqualified"> 
 <xsd:simpleType>
  <xsd:restriction base="xsd:double"></xsd:restriction>
 </xsd:simpleType>
</xsd:element>
I1 Integer (small) integer
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:byte">
   <xsd:totalDigits value="3"/>
   <xsd:fractionDigits value="0"/>
 </xsd:restriction>
</xsd:simpleType>
</xsd:element>
I2 Integer (medium) integer
<xsd:element name=" name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:short">
   <xsd:totalDigits value="5"/>
   <xsd:fractionDigits value="0"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>
I4 Integer (large) integer
<xsd:element name=" name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:int">
   <xsd:totalDigits value="10"/>
   <xsd:fractionDigits value="0"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>
Knumber Kanji string
<xsd:element name=" name" form="unqualified">  
 <xsd:simpleType>
  <xsd:restriction base="xsd:string">
   <xsd:maxLength value="number"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>
KV Kanji variable length string
<xsd:element name=" name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:string"></xsd:restriction>
 </xsd:simpleType>
</xsd:element>
KV[number] Kanji variable length with maximum length string
<xsd:element name="name"  form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:string">
   <xsd:maxLength value="number"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>
L Logical boolean
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:boolean"></xsd:restriction>
 </xsd:simpleType>
</xsd:element>
Nnumber1[.number2] Unpacked decimal numeric
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:decimal">
   <xsd:totalDigits value="number1 + number2"/>
   <xsd:fractionDigits value="number2"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>

Note:
default of number2 is 0.

NUnumber1[.number2] Unpacked decimal unsigned numeric
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:decimal">
   <xsd:totalDigits value="number1 + number2"/>
   <xsd:fractionDigits value="number2"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>

Note:
default of number2 is 0.

Pnumber1[.number2] Packed decimal numeric
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:decimal">
   <xsd:totalDigits value="number1 + number2"/>
   <xsd:fractionDigits value="number2"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>

Note:
default of number2 is 0.

PUnumber1[.number2] Packed decimal unsigned numeric
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:decimal">
   <xsd:totalDigits value="number1 + number2"/>
   <xsd:fractionDigits value="number2"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>

Note:
default of number2 is 0.

T Time dateTime:yyyy-MM-dd'T'H:mm:ss
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:dateTime"></xsd:restriction>
  </xsd:simpleType>
</xsd:element>
Unumber Unicode unicode
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:string">
   <xsd:maxLength value="number"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>
UV Unicode variable length unicode
<xsd:element name="name" form="unqualified"> 
 <xsd:simpleType> 
  <xsd:restriction base="xsd:string"></xsd:restriction>
 </xsd:simpleType>
</xsd:element>
UVnumber Unicode variable length with maximum length unicode
<xsd:element name="name" form="unqualified">
 <xsd:simpleType>
  <xsd:restriction base="xsd:string">
   <xsd:maxLength value="number"/>
  </xsd:restriction>
 </xsd:simpleType>
</xsd:element>

Top of page