Hi

This email is related to the compilation of XMLBeans classes corresponding
to the XML schema "urn:ietf:params:xml:ns:common-policy" as defined in RFC
4745, section 13. I give the reference to this specific schema to illustrate
but of course the issue should apply in other situation as well.

In the XML schema, there is the definition of the following complex type.

    <!-- //rule/actions or //rule/transformations -->
    <xs:complexType name="extensibleType">
        <xs:complexContent>
            <xs:restriction base="xs:anyType">
                <xs:sequence>
                    <xs:any namespace="##other" processContents="lax"
                    minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
            </xs:restriction>
        </xs:complexContent>
    </xs:complexType>

Scomp produces the class ExtensibleType that only provides me with the
setter
  ExtensibleType.set(XmlObject arg0)
but according to the schema definition I should have the possibility to add
more than one child (maxOccurs="unbounded").

Do you have any idea on how I can add several children of type xs:anyType to
my ExtensibleType ?

I would like to produce a such structure:

      <urn:rule>
        <urn:conditions/>
        <urn:actions>
          <call>true</call>
          <email>true</email>
        </urn:actions>
        <urn:transformations/>
      </urn:rule>

but with the current XMLBean class ExtensibleType I can only have a single
action under <actions/>.

Regards,
Pascal

Reply via email to