I am new to XML and Castor also - but I think with 'special' chars, you
have to escape them thusly: "&#19"

http://www.cs.tut.fi/~jkorpela/chars.html#esc

I believe your encoding may also be an issue:

http://www.translate.com/technology/multilingual_standard/using_xml_for_localization.html

I am sure other more knowledgeable list members will chime in on this.

Samuel Zhou wrote:
> Hi, Group members
> 
> I am new to Castor, I met an error with the special characters. When I 
> marshall an object to XML, the following error will appear. I am sure 
> that  a field of my object contains the character '' . I guess current 
> version can not support this feature, right?
> 
> Error message:
> <ErrorMessage>The character '' is an invalid XML character : The 
> character '' is an invalid XML character at 
> org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1686)</ErrorMessage> 
> 
> 
> Castor version: 0.9.4/0.9.7
> 
> Thanks,
> Samuel
> 


-------------------------------------------------
If you wish to unsubscribe from this list, please 
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to