Hello, i have the same problem. The problem is caused by the xml version. You need to use version=1.1 which allows unicode 4.0
but i still didn't find anything to set the output version of the xml document in castor Godmar Back wrote: > > Suppose I have an attribute a to an element e, as in <e a="value">. > Suppose 'value' is the Java string "\000". Setting this value and > rendering with Castor results in: > > Exception in thread "main" The character '^@' is an invalid XML character > at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1544) > at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1881) > at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1881) > at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1875) > at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1881) > at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1881) > at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1881) > at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1875) > at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:844) > at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:732) > > My question: is there a way to express "\000" in XML? Should Castor > maybe output: � ? > In general, what is the best technique to marshal characters that are > invalid XML characters? > Could I place them as CDATA children as in <e>value</e> to circumvent > these restrictions? > > Thanks. > > - Godmar > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > -- View this message in context: http://www.nabble.com/Q.%3A-escaping-invalid-characters--tp16191100p16418409.html Sent from the Castor - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

