When I realized xmllint wouldn't process this file, I stopped going
that route and presented all strings as Java literals before setting
the attributes.

 - Godmar

On Wed, Apr 2, 2008 at 6:57 AM, Joachim Grüneis <[EMAIL PROTECTED]> wrote:
>
>  @Godmar: Can you please look if you have the correct XML version set?
>  And provide us (Castor) with a test case including this file so we can
>  ensure that Castor will work with it.
>
>  Joachim
>
>
>
>
>  On 01/04/2008, Werner Guttmann <[EMAIL PROTECTED]> wrote:
>  > 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: &#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
>  >
>  >
>  >
>
>  ---------------------------------------------------------------------
>  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