Hi Kenneth,

An implementation for handling XPath expressions on a Java Object Model
should let you specify rules like what kind of classes is a *container*
or how to handle collections of a java class.
There is currently no work in changing the object model generated by
Castor.

Arnaud

> -----Original Message-----
> From: Kenneth Petersen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 04, 2002 10:22 AM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] Source Generator : unnamed nested groups
> question.
> 
> 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

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

Reply via email to