Hi Brian,

That seems a bit odd that the namespace setting would effect the ignore
extra elements. I'm not sure what could be the problem there. However,
you could try using the CVS version of Castor, which has a built in
patch for the "'xml' is reserved and cannot be declared." issue.
Basically we now allow the mapping of the 'xml' prefix as long as the
namespace URI is the proper one. This solves the Xerces issue with
mapping that prefix. I'm still scratching my head as to why they
automatically map that prefix, but that's beside the point.

So with the CVS version you won't need to set the
org.exolab.castor.parser.namespaces=true flag.

--Keith

"Brian Dillon (ext. 944)" wrote:
> 
> Hi,
> 
> I am using castor 0.9.5.2 and Tomcat 4. I have encountered the issue with
> xerces giving;
> 
>         Exception in thread "main" java.lang.IllegalArgumentException: The
> prefix 'xml' is reserved (XML 1.0 Specification) and cannot be declared.
> 
> However if I put in the work around;
> 
>         org.exolab.castor.parser.namespaces=true
> 
> in the castor.properties file I hit another problem which is;
> 
> unable to find FieldDescriptor for 'stereo' in ClassDescriptor of
> BusinessEntity
> 
> Where Car extends BusinessEntity but we try to unpack the xml as a business
> entity. Previoulsy by setting the variable;
> 
>         unmar.setIgnoreExtraElements(true);
> 
> We were able to get around the problem, but now with the Exerces workaround
> it has come back,
> 
> Any ideas ?
> 
> Thanks,
> 
> Brian
> 
> 
> 
> **********************************************************************
> The information contained in this e-mail is confidential, may be privileged and is 
> intended only for the user of the recipient named above.  If you are not the 
> intended recipient or a representative of the intended recipient, you have received 
> this e-mail in error and must not copy, use or disclose the contents of this e-mail 
> to anybody else.  If you have received this e-mail in error, please notify the 
> sender immediately by return e-mail and permanently delete the copy you received.  
> This e-mail has been swept for computer viruses.  However, you should carry out your 
> own virus checks.
> Registered in Ireland, No. 205721.  http://www.FINEOS.com
> **********************************************************************
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

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

Reply via email to