axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xuliujuan" <xuliuj...@hotmail.com>
Subject For Help: how to improve axis then it could solve the problem of " element and attribute are the same name"
Date Wed, 07 Jan 2004 03:02:44 GMT
 Hi all,
    When the element and attribute have the same name,the axis generates wrong code. That
is to say Axis could not be able to distinguish the element and attrubute when their name
are same. Axis just generate the same codes for them. eg.
private axis.TypeOfNetworkType networkType;
private axis.TypeOfNetworkType networkType; // attribute
That will cause a lot of error. 
   Could you tell me how to improve it?
 There is an xsd example :
<xs:element name="Administrator" substitutionGroup="cai3g:GetMODefinition">
.........
<xs:element name="uid" type="xs:string"/>
........
</xs:element>
</xs:sequence>
<xs:attribute name="uid" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
  Any hints? Thank you very much in advance.
Best wishes.
/XuLiujuan


Mime
View raw message