Title: Error with Castor-0.9.5.2 JAR while generating source

Hello,
This is to inform the group that I get the following error when I execute
        java org.exolab.castor.builder.SourceGenerator -i Criteria.xsd -verbose
by using the 0.9.5.2 version. But with 0.9.4.3 it works fine creating the source file.

Exception in thread "main" java.lang.IllegalArgumentException: The prefix 'xml' is reserved (XML 1.0 Specification) and cannot be declar

ed.
        at org.exolab.castor.xml.Namespaces.addNamespace(Namespaces.java:130)
        at org.exolab.castor.xml.UnmarshalHandler.startPrefixMapping(UnmarshalHandler.java:1953)
        at org.apache.xerces.parsers.AbstractSAXParser.startNamespaceMapping(AbstractSAXParser.java:1867)…..


Here's the xsd file used,
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="criteria">
   <xsd:complexType>
       <xsd:sequence>
           <xsd:element name="nodeType" type="xsd:string"/>
           <xsd:element name="valType" type="xsd:string"/>
           <xsd:element name="nodeName" type="xsd:string"/>
           <xsd:element name="nodeVal" type="xsd:string"/>  
           <xsd:element name="condition" type="xsd:string"/>
       </xsd:sequence>
   </xsd:complexType>
</xsd:element>
</xsd:schema>


Regards,
Shobha


**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

Reply via email to