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:Axis could not be able to 1distinguish the element and attrubute when their name are same.
Date Tue, 06 Jan 2004 03:02:26 GMT
Hi all,

          When the element and attrubute have the same name,the axis generates wrong codes.
That is to say Axis could not be able to 1distinguish the element and attrubute when their
name are same. Axis just generate the same codes for them. That will cause a lot of error.
Could you tell me how to improve it.

 There is an example which is A segment from Cai3GServiceNetworkProviding.xsd  below:

<xs:element name="Administrator" substitutionGroup="cai3g:GetMODefinition">

<xs:complexType>

<xs:complexContent>

<xs:extension base="cai3g:AbstractGetAttributeType">

<xs:sequence>

<xs:element name="uid" type="xs:string"/>

<xs:element name="cn" type="xs:string" maxOccurs="unbounded"/>

<xs:element name="sn" type="xs:string" maxOccurs="unbounded"/>

<xs:element name="userPassword" type="xs:string"/>

<xs:element name="roles" minOccurs="0" maxOccurs="6">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:enumeration value="user admin"/>

<xs:enumeration value="subscriber admin"/>

<xs:enumeration value="customer segment admin"/>

<xs:enumeration value="service package admin"/>

<xs:enumeration value="service admin"/>

<xs:enumeration value="affiliate admin"/>

</xs:restriction>

</xs:simpleType>

</xs:element>

</xs:sequence>

<xs:attribute name="uid" type="xs:string" use="required"/>

</xs:extension>

</xs:complexContent>

</xs:complexType>

</xs:element>


Mime
View raw message