|
Re: duplicate element in one namespace [message #42538 is a reply to message #42504] |
Wed, 28 April 2004 16:56 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Andy,
Yes, this is perfectly legal.
Andy Scherzinger wrote:
> Hi all,
>
> is the following possible?
>
> ...
> <xsd:complexType name="foo">
> <xsd:sequence>
> <xsd:element name="elem1" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> ...
> <xsd:complexType name="bar">
> <xsd:sequence>
> <xsd:element name="elem1" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
>
> So the element "elem1" exists in both complexTypes and the same
> NameSpace. It is distinguishable via complexTypes, but still has the
> same name. Is this possible
>
> Any suggestions?
>
> regards,
> ---Andy
|
|
|
Re: duplicate element in one namespace [message #586178 is a reply to message #42504] |
Wed, 28 April 2004 16:56 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
Andy,
Yes, this is perfectly legal.
Andy Scherzinger wrote:
> Hi all,
>
> is the following possible?
>
> ...
> <xsd:complexType name="foo">
> <xsd:sequence>
> <xsd:element name="elem1" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> ...
> <xsd:complexType name="bar">
> <xsd:sequence>
> <xsd:element name="elem1" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
>
> So the element "elem1" exists in both complexTypes and the same
> NameSpace. It is distinguishable via complexTypes, but still has the
> same name. Is this possible
>
> Any suggestions?
>
> regards,
> ---Andy
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03193 seconds