Hello,

I'm having problem running castor9.5.2

So running
<?xml version='1.0'  encoding="UTF-8" ?>
<schema xmlns="http://www.w3.org/2001/XMLSchema";>
        
  <complexType name="A">
    <sequence>
      <element name="B" type="string"/>
      <element name="C" type="string"/>
    </sequence>
  </complexType>

</schema>

This gives an XML exception:
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)
...
...
I did see a couple of posts on the mailing list to workaround this
problem particularly about these settings...

org.exolab.castor.parser.namespaces=false
org.exolab.castor.builder.javaclassmapping=type

I made these changes in the castorbuilder.properties file and rebuilt
the jar...
This would not work... even putting the castorbuilder.properties in the
classpath won't work. Where exactly should the castorbuilder.properties
file go ?

Have I missed something or was I on the right track ?

Thanks,
-- 
Harshawardhan 

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

Reply via email to