0 Replies Latest reply on May 3, 2007 11:11 AM by NK4

    Complex Component

    NK4
      Can someone please help me define a complex data type that stores name-value pair.

      For a given param name, the value could be any one of the 4 possible choices.

      <xsd:complexType name="NameParameterValuePair">
      <xsd:sequence>
      <xsd:element name="name" type="xsd:string"/>
      <xsd:choice minOccurs="0" maxOccurs="1">
      <xsd:element name="stringValue" type="xsd:string"/>
      <xsd:element name="booleanValue" type="xsd:boolean"/>
      <xsd:element name="dateValue" type="xsd:dateTime"/>
      <xsd:element name="numericValue" type="messages:NumericValue"/>
      </xsd:choice>
      </xsd:sequence>
      </xsd:complexType>