argouml-tigris-org.github.io

Web pages for the ArgoUML project.

From the ArgoUML wiki at argouml.tigris.org.
Wiki: XSD/Multiplicity

Multiplicity

UML multiplicity is addressed in a similar manner within schema files through the use of the minOccurs and maxOccurs attributes of xsd:element. The remainder of this section depicts several different line types depicted in UML and how they would be represented in XSD.

0..1

...
<xsd:sequence>
  <xsd:element name=”LicenseID” minOccurs=”0” maxOccurs=”1”/>
</xsd:sequence>
...

1..*

...
<xsd:sequence>
  <xsd:element name=”LicenseID” minOccurs=”1”
     maxOccurs=”unbounded”/>
</xsd:sequence>
...

1..1

...
<xsd:sequence>
  <xsd:element name=”LicenseID” minOccurs=”1”  maxOccurs=”1”/>
</xsd:sequence>
...
  • <!> Patterns other than xsd:sequence do in fact exist and are discussed in the Stereotypes proposed functional design document.

XSD/Multiplicity (last edited 2008-12-19 19:48:10 -0700 by mathco)