You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by xuliujuan <xu...@hotmail.com> on 2004/01/06 04:02:26 UTC

For Help:Axis could not be able to 1distinguish the element and attrubute when their name are same.

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>