Godmar,

can you please provide me with a test case that enables us to replay this scenario ?

Werner

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: &#0; ?
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


Reply via email to