Skip to main content
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : XML : Education - Tutorials
XML Schema Infoset Model, Part 2
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
5. Content models

Exercise 4: Create a global complex type with a sequence model group page 3 of 6

Using the XML Schema Infoset Model APIs and adding on to the schema created in Exercise 3: Create a list simple type, create a global complex type called "PurchaseOrderType" with a sequence model group.

<?xml version="1.0"?>
  <simpleType name="USState">
    <restriction base="string">
      <enumeration value="AK"/>
      <enumeration value="AL"/>
      <enumeration value="AR"/>
    <list itemType="po:USState"/>
  <complexType name="PurchaseOrderType">

New constructs created in this exercise:

  • <complexType> - Global complex type with name="PurchaseOrderType"
  • <sequence> - Model group with compositor set to "sequence"
Solution: Exercise 4 solution

Main menuSection menuFeedbackPreviousNext
About IBM | Privacy | Legal | Contact