I saw something similar when using the latest version of Xerces.  I fixed it by using 
version 1.4.0 of Xerces.

> -----Original Message-----
> From: Narahari Lakshminarayana 
> Sent: Monday, December 29, 2003 12:21 AM
> To: '[EMAIL PROTECTED]'
> Subject: error compiling the example in 0.9.5.2
> 
> 
> 
> Hello:
> 
> I am trying to run the examples for sourcegenerator.  I get the following
> error.
> 
> If I try and run the example in the 0.9.5.1 folder, it works fine.
> 
> So, I think there might be a bug in 0.9.5.2.
>  
> I have searched the archive already but the workaround that is provided does
> not work and there seems to be no 
> conclusion the problem is fixed.
>  
> Xerces 2.6 is being used in both cases.
>  
> Please provide some suggestions.
>  
> Thanks
> -Narahari
>  
> C:\Documents and
> Settings\nlakshmi\Desktop\castor-0.9.5.2\examples\SourceGenerator>java -cp
> ;castor-0.9.5.2-xml.jar;castor-0.9.5.2.jar;xercesImpl.jar
> org.exolab.castor.builder.SourceGenerator -i invoce.xsd -f -binding-file
> bindingInvoice.xml
> -- Suppressing non fatal warnings.
> Exception in thread "main" java.lang.IllegalArgumentException: The prefix
> 'xml' is reserved (XML 1.0 Specification) and cannot be declared.
>         at
> org.exolab.castor.xml.Namespaces.addNamespace(Namespaces.java:130)
>         at
> org.exolab.castor.xml.UnmarshalHandler.startPrefixMapping(UnmarshalHandler.j
> ava:1953)
>         at
> org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(Unknown
> Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source)
>         at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
> Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
> wn Source)
>         at
> org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem
> entHook(Unknown Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
> her.dispatch(Unknown Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at
> org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:583)
>         at
> org.exolab.castor.builder.binding.BindingLoader.loadBinding(BindingLoader.ja
> va:130)
>         at
> org.exolab.castor.builder.binding.BindingLoader.createBinding(BindingLoader.
> java:250)
>         at
> org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:746)

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

Reply via email to