Hi,

I have following element in a schema definition file:

 <xsd:element name="A">
      <xsd:complexType>
          <xsd:choice maxOccurs="unbounded">
              <xsd:element ref="B"/>
              <xsd:element ref="C"/>
          </xsd:choice>
      </xsd:complexType>
  </xsd:element>

Castor generates a class called AItem which has two
field members B and C and function memebers getA,
setA, getB/setB.

The problem that I have is that when I parse the xml
file I have to distinguish between B and C and the
only way to do this is to use getB() != null or getA()
!= null. It would be nice if you can add an
"anonymous" function called getObject that would
return the element object or maybe boolean isXYZ()
functions.

Is there a way to control what Castor generates for
the choices structures?

Thanks 
Is there a way to tell Castor to gener




__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to