Here is my schema:
[code]
    <xsd:complexType name="test">
        <xsd:sequence>
            <xsd:element name="created" type="tns:created" minOccurs="0"/>
            <xsd:any namespace="##any" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:element name="created" type="tns:created"/>
    <xsd:complexType name="created">
        <xsd:attribute name="time" type="xsd:dateTime"/>
    </xsd:complexType>
[/code]

[code]<execution>
                        <id>generate-test-sources</id>
                        <configuration>
                            <staleFile>target/test.staleFile</staleFile>
                            <extension>true</extension>
                            <schemaDirectory>
                                ${basedir}/src/main/resources/META-INF/xsd
                            </schemaDirectory>
                            <clearOutputDir>false</clearOutputDir>
                            <schemaFiles>test.xsd</schemaFiles>
                            <packageName>org.test</packageName>
                           
<arguments>-Xcollection-setter-injector</arguments>
                        </configuration>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                    </execution>
[/code]


org.xml.sax.SAXParseException: cos-nonambig: "http://test.org/api":created
and WC[##any] (or elements from their substitution group) violate "Unique
Particle Attribution". During validation against this schema, ambiguity
would be created for those two particles.

-- 
View this message in context: 
http://old.nabble.com/-jaxb2-maven-plugin--xsd%3AAny-object-generation-tp32143570p32143570.html
Sent from the mojo - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to