I never saw an answer to this - any suggestions?
Lee
-----Original Message-----
From: Lee Breisacher [mailto:LBreisacher_at_seagullsw.com]
Sent: Monday, August 16, 2004 5:43 PM
To: users_at_jaxb.dev.java.net
Subject: Duplicate nested element
I have a large schema with the following fragment in the middle of it.
XJC generates code with no errors, but the generated code does not
compile ("...TemplateTagsTypeImpl is already defined..."). Obviously,
the dual definition of TemplateTags is bogus (I received this schema - I
didn't write it!), but I would expect an XJC error. Anyway, is there a
workaround for this situation?
Thanks,
Lee
<xsd:element name="TemplateTags">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="TemplateTags">
<xsd:complexType>
<xsd:sequence>
<xsd:element
name="TemplateTag" type="xsd:string" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net