IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  sequence in schema?

    Posted Wed August 31, 2005 12:03 AM

    I have a schema to a collection of documents xml, my problem is in the sequence of elements, for exemple i have the element antecedentesBasicos :

    <xs:element name = “antecedentesBasicos”>
    <xs:complexType mixed = “true”>
    xs:sequence
    <xs:element ref = “nombre” minOccurs = “0”></xs:element>
    <xs:element ref = “segundoNombre” minOccurs = “0”></xs:element>
    <xs:element ref = “apellidoPaterno” minOccurs = “0”></xs:element>
    <xs:element ref = “apellidoMaterno” minOccurs = “0”></xs:element>
    <xs:element ref = “paisNacimiento” minOccurs = “0”></xs:element>
    <xs:element ref = “paisResidencia” minOccurs = “0”></xs:element>
    <xs:element ref = “regionResidencia” minOccurs = “0”></xs:element>
    <xs:element ref = “ciudadComunaResidencia” minOccurs = “0”></xs:element>
    <xs:element ref = “fechaNacimiento” minOccurs = “0”></xs:element>
    <xs:element ref = “genero” minOccurs = “0”></xs:element>
    <xs:element ref = “paisNacionalidad” minOccurs = “0”></xs:element>
    <xs:element ref = “paisSegundaNacionalidad” minOccurs = “0”></xs:element>
    <xs:element ref = “identificacionChilena” minOccurs = “0”></xs:element>
    <xs:element ref = “identificacionExtranjera” minOccurs = “0”></xs:element>
    <xs:element ref = “paisPasaporte” minOccurs = “0”></xs:element>
    <xs:element ref = “fotografia” minOccurs = “0”></xs:element>
    <xs:element ref = “telefono” minOccurs = “0”></xs:element>
    <xs:element ref = “fax” minOccurs = “0”></xs:element>
    <xs:element ref = “comunicacionweb” minOccurs = “0”></xs:element>
    <xs:element ref = “paginaweb” minOccurs = “0”></xs:element>
    <xs:element ref = “descripcion” minOccurs = “0”></xs:element>
    <xs:element ref = “tipo” minOccurs = “0”></xs:element>
    <xs:element ref = “email” minOccurs = “0”></xs:element>
    </xs:sequence>
    <xs:attribute name = “type” use = “required”>
    xs:simpleType
    <xs:restriction base = “xs:string”>
    <xs:enumeration value = “S”></xs:enumeration>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    </xs:complexType>
    </xs:element>

    but no all documents have the same sequence, the order the sequence is diferent in the collection of documents xml.

    i hope help me.

    Thanks.


    #API-Management
    #webMethods
    #Tamino


  • 2.  RE: sequence in schema?

    Posted Wed August 31, 2005 11:57 AM

    Hi

    as long as you have only element in your sequence (no any/sequence/choice/all) with maxOccurs=“1” (minOccurs may be “0” or “1”), you can use xs:all instead of xs:sequence. Then, an arbitrary order is permitted.

    Best regards
    Uli


    #API-Management
    #webMethods
    #Tamino