Re: Differentiate between Attributes and AttributeRefs in a complex type

2011-03-31 Thread Michael Glavassevich
I don't think there's a reliable way to get the info you're looking for through the API. There is no component for a reference to an attribute group. The attributes just get absorbed into the complex type definition. Remember that Xerces' XML Schema API provides a schema component centric view of

Re: Differentiate between Attributes and AttributeRefs in a complex type

2011-03-31 Thread RJ
RJ dag.com> writes: > > The XSComplexTypeDecl.getAttributeUses also returns attributes belonging to > AttributeGroups. > I use the XSAttributeDecl.getParent() method to distinguish between the 2 > scenarios. > XSAttributeDecl.getParent() method : > 1)returns null when the attribute is member

Re: Differentiate between Attributes and AttributeRefs in a complex type

2011-03-31 Thread RJ
The XSComplexTypeDecl.getAttributeUses also returns attributes belonging to AttributeGroups. I use the XSAttributeDecl.getParent() method to distinguish between the 2 scenarios. XSAttributeDecl.getParent() method : 1)returns null when the attribute is member of a AttributeGroup 2)returns XSCo

Re: Differentiate between Attributes and AttributeRefs in a complex type

2011-03-29 Thread Michael Glavassevich
-mail: mrgla...@apache.org RJ wrote on 03/28/2011 06:20:24 PM: > I want to differentiate between Attributes and AttributeRefs in a > complex type. > The XSComplexTypeDecl.getAttributeUses method returns a list of bothattributes > and attributeRefs. Is there a way to differenciate

Differentiate between Attributes and AttributeRefs in a complex type

2011-03-28 Thread RJ
I want to differentiate between Attributes and AttributeRefs in a complex type. The XSComplexTypeDecl.getAttributeUses method returns a list of both attributes and attributeRefs. Is there a way to differenciate between them