You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Youssef <yo...@gmail.com> on 2007/10/03 18:15:09 UTC
How to acced attribute-group
hi,
i have a schema containing attribute-group schema element like this:
<xs:element name="Foo">
<xs:complexType>
.....
<xs:attributeGroup ref="barGroup"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="barGroup">
<xs:attribute name="attribute1" type="value1"/>
<xs:attribute name="attribute2" type="value2"/>
<xs:attribute name="attribute2" type="value2"/>
<xs:anyAttribute namespace="##any" processContents="lax"/>
</xs:attributeGroup>
</xs:schema>
My question is: how can i acced to barGroup attributeGroup to read
attribute value?
i connot found any getter method for this attributeGroup , something
like Enum enum1 = FooDocument.getFoo().getBarGroupAttributeGroupe();
thkx in advance
youssef
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org
Re: How to acced attribute-group
Posted by Srinath C <sr...@gmail.com>.
Youssef,
You will not get such an accessor method. You will instead get methods
like this :
FooDocument.getFoo().getAttribute1();
FooDocument.getFoo().getAttribute2();
FooDocument.getFoo().getAttribute3();
On 10/3/07, Youssef <yo...@gmail.com> wrote:
>
> hi,
> i have a schema containing attribute-group schema element like this:
> <xs:element name="Foo">
> <xs:complexType>
> .....
> <xs:attributeGroup ref="barGroup"/>
> </xs:complexType>
> </xs:element>
>
> <xs:attributeGroup name="barGroup">
>
> <xs:attribute name="attribute1" type="value1"/>
> <xs:attribute name="attribute2" type="value2"/>
> <xs:attribute name="attribute2" type="value2"/>
> <xs:anyAttribute namespace="##any" processContents="lax"/>
> </xs:attributeGroup>
> </xs:schema>
>
> My question is: how can i acced to barGroup attributeGroup to read
> attribute value?
> i connot found any getter method for this attributeGroup , something
> like Enum enum1 = FooDocument.getFoo().getBarGroupAttributeGroupe();
>
> thkx in advance
>
> youssef
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>