Peter,

Start by trying:

1) Your schema namespace is wrong. Case sensitive. Change xmlns:xsd="http://www.w3.org/2001/xmlSchema"; to xmlns:xsd="http://www.w3.org/2001/XMLSchema";

2) I found unexpected bare numbers on lines 38, 107, 176, 244, 312, 381.

HTH,

Brett Randall


From: Peter Bosmans <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [castor-user] 'schema' not declared
Date: Mon, 13 Sep 2004 13:57:55 +0200

Hi,

I've a problem with generating source code from a schema file.
When i do "sourceGen -i threeships_IMS_enterprise.xsd -package threeships" than i get the following error. (In attach you can find the used schema file).
What is the problem here ?


D:\castor-0.9.5.3>sourceGen -i threeships_IMS_enterprise.xsd -package threeships

'schema' has not been declared in the XML Schema namespace.
line: 5
at org.exolab.castor.xml.schema.reader.ComponentReader.error(ComponentRe
ader.java:198)
at org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(S
chemaUnmarshaller.java:447)
at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(
Sax2ComponentReader.java:253)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:411)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLN
SDocumentScannerImpl.java:306)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.s
canRootElementHook(XMLNSDocumentScannerImpl.java:594)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1610)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:348)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:539)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:595)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1125)
at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenera
tor.java:388)
at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenera
tor.java:441)
at org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:7
97)
--
Peter Bosmans
Katholieke Hogeschool Limburg
Universitaire Campus Gebouw B Bus 1
3590 Diepenbeek
Tel. +32 11 230 770
Fax. +32 11 230 789
Mail. [EMAIL PROTECTED]
<< threeships_IMS_enterprise.xsd >>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user

_________________________________________________________________
Protect yourself from junk e-mail: http://microsoft.ninemsn.com.au/protectfromspam.aspx




----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user

Reply via email to