You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-user@xml.apache.org by "Frederick N. Brier" <fb...@multideck.com> on 2004/01/12 00:03:33 UTC

Debugging SchemaCompiler errors

Using the provided examples, my build file has an ant task to take a
schema and generate the xmlbeans classes.  It did so with a simpler
schema and some initial code used it to load an xml file from the file
system.  However, an enhanced schema is generating the error message below:

     [java] C:\src\conf\xml\myschema.xsd:0: error: Attribute not
allowed: name in element complexType@http://www.w3.org/2001/XMLSchema

Unfortunately that is the only output.  The schema validates using
XmlSpy.  I have tried the -debug and -verbose SchemaCompiler command
line parameters to generate a more detailed message.  As an aside, I
have also tried these parameters: "-dl -repackage -noupa -nopvr
-allowmdef".  Are there any suggestions for tracking down the problem?
I am using version xmlbeans 1, not CVS.  The schema is fairly involved
(inheritance, complex mixed element types, etc), but I am not at liberty
to post it.  Thank you for any assistance.

Frederick N. Brier





- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


error: Attribute not allowed

Posted by "Frederick N. Brier" <fb...@multideck.com>.
Compiling my schema is generating the following error:

    [java] C:\src\conf\xml\myschema.xsd:0: error: Attribute not allowed: 
name in element complexType@http://www.w3.org/2001/XMLSchema

What could be causing this?  XmlSpy says the schema validates.  Grep'ing 
through the source has not turned up anything.  I am at a loss as to 
where to start.  Thank you for any help.

Fred.


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


error: Attribute not allowed

Posted by "Frederick N. Brier" <fb...@multideck.com>.
Compiling my schema is generating the following error:

    [java] C:\src\conf\xml\myschema.xsd:0: error: Attribute not allowed: 
name in element complexType@http://www.w3.org/2001/XMLSchema

What could be causing this?  XmlSpy says the schema validates.  Grep'ing 
through the source has not turned up anything.  I am at a loss as to 
where to start.  Thank you for any help.

Fred.


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/