Ok, thanks for the information, it's clear now. Other than facets, the only things that come to mind are model groups (<sequence>, <all>, <choice>). For facets, the issue is that the way we expose facets is through the SchemaType.getFacet(int) API which returns an XmlAnySimpleType, which has no place for the annotation. This is definitely something good to have, but unfortunately, since no one asked for it before, I think it is a little late to expect it in the V2 timeframe.
Radu -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 06, 2005 11:56 PM To: user@xmlbeans.apache.org Subject: RE: Problems accessing enumerations's annotations Hello, > I am not sure what you mean by "sort of XML Schema parser". Are you > using the Schema* APIs or XmlCursor or XmlObject or none? I am going to > assume that you use SchemaType and the parsing and compilation is > actually done by XmlBeans. Yes, I load an XSD file then compile it with XMLBeans. Then I mainly use Schema* APIs to go through schema elements and attributes and call callbacks defined in an interface that clients (we also call them plugins) interested in can implement to generate some code (among other things, we have plugins to generate GUI elements and POJO with XDoclet @hibernate tags). And I use XmlCursor and XmlObject only to walk through application and user information embedded in annotations ... > In this case, we unfortunately are not currently in the position to > provide access to the Schema annotations for facets. Argh, ok ... and are facets the only case where we can't have access to Schema annotations or are there some others ? > I'll follow up on that for the next release. Hmm, so there is some hope ? ;-) I don't realize the amount of stuff needed for that but if I can help in some way ... Regards, Benoit. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]