I am using the Source Generator to create Value-Objects capable of
containing data structures described by a bunch of xsd documents. 

I would like to be able to use X-Path expressions to be able to access some
of the data within the Value-Objects created. This is not possible because
of the way unnamed nested groups lead to the creation of nested java
instances. Example:

        <xs:element name="Request">
                <xs:complexType>
                        <xs:sequence>
                                <xs:choice>
                                        <xs:element name="Success"
type="SuccessType"/>
                                        <xs:element name="Errors"
type="ErrorsType"/>
                                </xs:choice>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>

This would create a "Request" class containing a "RequestChoice" containing
either a "Success" or "Errors" object.

I would like to be able to use the X-Path expression "//Request/Success" to
access the "Success" element using for instance JXPath.

Can/will the Castor Source Generator at some point in the not so distant
future be changed so that it will be able to use X-Path?

Best Regards 
Kenneth Petersen

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

Reply via email to