I am attempting to compile and run the SourceGenerator example that comes
with the XML code generation package.  I get the following error when I run
the
test.bat at the point where it calls 'java
org.exolab.castor.builder.SourceGenerator'.

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(AbstractSA
XParser.java:1867)
...

I am using Castor 0.9.5.2 with JDK 1.4.2 and have tried including Xerces
1.4.4
and Xerces 2.5.0 jars in the classpath with the same result.  If anyone
could tell
me if I need to modify the xsd, xml or test.bat file for the example to run
I would
appreciate it.


Henry Cho

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

Reply via email to