Hi,

I have the following two very simple xsds



----------
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns="urn:iso:foo1"
                                                targetNamespace="urn:iso:foo1" 
elementFormDefault="qualified">
        <xs:element name="Document" type="mytype1"/>

        <xs:complexType name="mytype2">
                <xs:sequence>
                        <xs:element name="Id" type="xs:string"/>
                </xs:sequence>
        </xs:complexType>

        <xs:complexType name="mytype1">
                <xs:sequence>
                        <xs:element name="Header" type="mytype2"/>
                </xs:sequence>
        </xs:complexType>

</xs:schema>
--------------

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns="urn:iso:foo2"
                                                targetNamespace="urn:iso:foo2" 
elementFormDefault="qualified">
        <xs:element name="Document" type="mytype1"/>

        <xs:complexType name="mytype2">
                <xs:sequence>
                        <xs:element name="Id" type="xs:string"/>
                </xs:sequence>
        </xs:complexType>

        <xs:complexType name="mytype1">
                <xs:sequence>
                        <xs:element name="Header" type="mytype2"/>
                </xs:sequence>
        </xs:complexType>

</xs:schema>

--------------



In the xsds above, the same types are defined (mytype1, mytype2).

I want the xmlbeans compiler to ingnore multi-definitions in

the above schmemas so as only one Mytype1 and Mytype2 classes to be generated

(not Mytype1, Mytype12, Mytype2, Mytype22).

I use the following command

scomp -out foo.jar  -compiler C:\j2sdk1.4.2_13\bin\javac.exe  -allowmdef
"urn:iso:foo1 urn:iso:foo2" -mx 1024M *.xsd config.xsdconfig


but has no effect


I really appreciate any help


Best regards

John







the used config.xsdconfig file is

<xb:config  xmlns:xb="http://www.bea.com/2002/09/xbean/config";>
                        <xb:namespace uri="urn:iso:foo1">
                        <xb:package>com.foo.types</xb:package>
                        </xb:namespace>
                        <xb:namespace uri="urn:iso:foo2">
                        <xb:package>com.foo.types</xb:package>
                        </xb:namespace>
</xb:config>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to