Yes, there should be a way to tell the parser and of course somehow
the user has to tell Castor to tell the parser - I missed the point
for marshalling and was just thinking on unmarshalling.

Joachim

On 02/04/2008, Werner Guttmann <[EMAIL PROTECTED]> wrote:
>
>
>  Joachim Grüneis wrote:
>
> > Hello,
> >
> > Sorry Werner, but XML 1.1 is released:
> >
>  Well, I stand corercted .. ;-).
>
>
> > XML 1.1 (Second Edition), W3C Recommendation, 16 August 2006, Tim
> > Bray, Jean Paoli, C. M. Sperberg-McQueen, Eve Maler, François Yergeau,
> > John Cowan, ed.
> >
> > But still this should be a question of putting it right into the
> > <?xml... ?> prologue and of the parser used beneath of Castor. It
> > shouldn't be an issue for Castor itself.
> >
>  Well, as Castor during marshalling produces this output, there needs to be
> a way to set the version  number, no ?
>
>
> >
> > @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
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to