You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Sir Woody Hackswell <wo...@hackswell.com> on 2003/03/14 00:19:36 UTC

Detecting if a Schema element contains groups

I'm playing with SEnumVal, and I would like to print out if a node has
groups or group references in it.  It seems that SEnumVal only shows
Elements, not Groups at all.  It does show all the elements in the group.  
However, I'd like an accounting of both.  Is this possible?  I need to pull
the annotation out of the group itself.

I'm still new to the API, so please don't beat me too hard. ;)

Example schema:

<xs:element name="bubba">
<xs:complexType>
  <xs:sequence>
    <xs:group ref="ME"/>
    <xs:group ref="YOU"/>
  </xs:sequence>
</xs:complexType>
</xs:element>
...
...

<xs:group name="ME">
  <xs:annotation>...</xs:annotation>
  <xs:sequence>
    <xs:element name="ISeeYou" type="xs:string">
    <xs:element name="YouSeeMe" type="xs:string">
  </xs:sequence>
</xs:group>


I get the usual dump about: bubba, ISeeYou, and YouSeeMe.

I never get any information under bubba about the groups "ME" and "YOU".

Thanks!


-----
Sir.Woody@Hackswell.com       http://sir.woody.hackswell.com


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org