List Info

Thread: How to acced attribute-group




How to acced attribute-group
country flaguser name
Canada
2007-10-03 11:15:09
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-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org


Re: How to acced attribute-group
user name
2007-10-03 13:32:11
Youssef,
&nbsp;  You will not get such an accessor method. You will instead get methods like this :
 &nbsp; FooDocument.getFoo().getAttribute1();
 ;  FooDocument.getFoo().getAttribute2();
 ;  FooDocument.getFoo().getAttribute3();

On 10/3/07, Youssef < youssefmankarigmail.com">youssefmankarigmail.com> wrote:
hi,
i have a &nbsp;schema containing attribute-group schema element like this:
<xs:element name=";Foo"&gt;
 &nbsp;  <xs:complexType>
&nbsp; &nbsp; &nbsp; &nbsp; .....
 ; &nbsp; &nbsp; &nbsp; &lt;xs:attributeGroup ref="barGroup&quot;/>
  ; &nbsp; </xs:complexType&gt;
 &nbsp; &nbsp; </xs:element>

<xs:attributeGroup name=";barGroup&quot;>

&nbsp;   ; &nbsp; &nbsp;<xs:attribute name=";attribute1" type=";value1&quot;/>
&nbsp; &nbsp; &nbsp;   ;<xs:attribute name=";attribute2" type=";value2&quot;/>
&nbsp;   ; &nbsp; &nbsp;<xs:attribute name=";attribute2" type=";value2&quot;/>
&nbsp; &nbsp; &nbsp;   ;<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-unsubscribexmlbeans.apache.org">user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org">user-helpxmlbeans.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )