Hold on, as far as I know, XML standard 1.1 has not been released, right ?
Werner
PS Having said that, it would not be too hard to add such an option,
should there be demand,
esenay wrote:
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email