I'm using the older version, 0.9.3.9.
 
VERSION 1 -- This produces a similar error.  Notice that there is no xmlns attribute on the schema node.
 
    <?xml version="1.0" encoding="UTF-8"?>
    <schema>
    <element name="note" type="string"/>
    </schema>
 
VERSION 2 -- With the xmlns attribute in the schema node, this gets rid of the error.
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="
http://www.w3.org/2001/XMLSchema">
    <element name="note" type="string"/>
    </schema>
-----Original Message-----
From: Amit Thakkar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 1:06 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] No namespace declaration error

I am attempting to generate source code using the command:
java org.exolab.castor.builder.SourceGenerator -i Schema.xml -package =
test.castor

I am getting the following error:

No namespace declaration has been found for mySchema
   * assuming default namespace of
http://www.w3.org/2001/XMLSchema
<mySchema> elements are either currently unsupported or non-valid schema =
elements.

I have no idea what this means... can anyone offer any insight

Reply via email to