Hi Laurance,
Thanks for the quick reply, however this is not the solution.
This does not give access to the groups, or attribute groups, as they appear to be removed for the model.
 
Attribute and attribute groups are not part of the content model of the SchemaType
Groups are removed from the content model.
 
Further than that I see that
1. the SchemaParticle has already had 'pointless particles' removed (which also gets rid of these annotations)
2. it doesnt include groups (which gets rid of these annotations)
3. the SchemaParticle does not implement SchemaAnnotated, so that the annotations on the particle are not accessable
 
 
 
Mike


From: Lawrence Jones [mailto:[EMAIL PROTECTED]
Sent: 06 October 2005 23:11
To: user@xmlbeans.apache.org
Subject: RE: [newbe] Navigation from SchemaType to the schema view of the model

Hi Mike

 

There have been a number of discussions on this before. It is not altogether obvious and a JIRA (http://issues.apache.org/jira/browse/XMLBEANS-195) has been raised to look into making it much easier but in the meantime these email threads should help:

 

http://mail-archives.apache.org/mod_mbox/xmlbeans-user/200509.mbox/[EMAIL PROTECTED]

 

http://mail-archives.apache.org/mod_mbox/xmlbeans-user/200508.mbox/[EMAIL PROTECTED]

 

http://mail-archives.apache.org/mod_mbox/xmlbeans-user/200507.mbox/[EMAIL PROTECTED]

 

Cheers,

 

Lawrence

 


From: Mike Skells [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 06, 2005 2:48 PM
To: user@xmlbeans.apache.org
Subject: [newbe] Navigation from SchemaType to the schema view of the model

 

hi,

I am working with a schema where I need to access the actual structure of the schema. I need to retrieve information from the custom annotations of, for instance the attribyute groups and the groups. 

 

So stating from a SchemaType that represents a complex type, how should I navigate to the SchemaLocalElement or SchemaGlobalElement

 

Also once at a SchemaLocalElement how can I access the content model, to retrieve an annotation on a contained group

(I cannot use the content model of the SchemaType as that has already folded the group into the parent model)

 

The same issues relate to attribute groups etc.

 

I feel like I am missing the plot somewhere

 

 

Mike

Reply via email to