I have an element of the form

  <xsd:complexType name="registration-state">
    <xsd:sequence>
      <xsd:element ref="base:any-configuration" minOccurs="1"
maxOccurs="1">
      </xsd:element>
      <xsd:element name="point" type="registration-point" minOccurs="0"
maxOccurs="unbounded">
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>

with

  <xsd:element name="any-configuration" type="configuration"
abstract="true" substitutionGroup="any-configuration">
  </xsd:element>

and a number of extensions of configuration with appropriate
substitution groups.

I can read an XML file with the appropriate substitutable XML elements,
such as <pointer> converting into Pointer objects. However, when I try
to write an XML file with a Pointer object set by setAnyConfiguration I
get an <any-configuraton> element, rather than a <pointer> element.

I'm using castor 1.1.1., the source code generator and a type element
mapping.

Is there any way of getting the correct element name to be output? 



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to