Information Management IBM InfoSphere MDM Custom Domain Hub, Version 10.1

Example internal spec schema XSD and spec XML output

During runtime, the InfoSphere® MDM Custom Domain Hub uses spec schemas to validate the spec values, which are received in the form of an XML document.

Example internal spec schema XSD

The following is a basic example of a spec schema, which contains the information used to validate XML spec values during runtime:
<xsd:element name="penSpec" type="penSpec:PenSpec"/>
  <xsd:element name="penId" type="xsd:string"/>
  <xsd:element name="penDescription" type="mdmspec:localizedString"/>
  <xsd:element name="penPhysicalDimensions" type="penSpec:PhysicalDimensions"/>
  <xsd:element name="penType" type="penSpec:PenType"/>

  <xsd:complexType name="PenSpec">
    <xsd:sequence>
      <xsd:element ref="penSpec:penId" minOccurs="1" maxOccurs="1"/>
      <xsd:element ref="penSpec:penDescription" minOccurs="0"/>
      <xsd:element ref="penSpec:penPhysicalDimensions" minOccurs="0" maxOccurs="1"/>
      <xsd:element ref="penSpec:penType" minOccurs="0" maxOccurs="1"/>
    </xsd:sequence>
  </xsd:complexType>

<xsd:element name="diameter" type="xsd:decimal"/>
  <xsd:element name="length" type="xsd:decimal"/>

  <xsd:complexType name="PhysicalDimensions">
    <xsd:sequence>
      <xsd:element ref="penSpec:diameter" minOccurs="1" maxOccurs="1"/>
      <xsd:element ref="penSpec:length" minOccurs="1"  maxOccurs="1"/>
    </xsd:sequence>
  </xsd:complexType>

Example XML spec values

The following is a basic example of the XML spec values to be validated against the spec schema illustrated above:
<penspec:penSpec>
  <penId>1</penId>
    <penDescription id="1">Sleek and stylish.</penDescription>
      <penPhysicalDimensions>
      <diameter>10</diameter>
      <length>100</length>
    </penPhysicalDimensions>
  <penType>Ballpoint</penType>
</penspec:penSpec>


Feedback

Timestamp Last updated: November 2012

Topic URL: