users@jaxb.java.net

Duplicate nested element

From: Lee Breisacher <LBreisacher_at_seagullsw.com>
Date: Mon, 16 Aug 2004 20:42:44 -0400

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