users@jaxb.java.net

Re: White Spaces in xsd:string

From: Jyrki Saarinen <jyrki.saarinen_at_valimo.com>
Date: Wed, 19 Jan 2005 11:53:25 +0200

Kohsuke Kawaguchi wrote:

> Thomas Roschi wrote:
>
>> Yes. The string i'm talking from is an attribute:
>
> >
>
>> Does any one know how i can parse the xml and keep this new lines? The
>> text is preformatted ascii.
>
>
> You can't. That's what the XML spec says.
>
> See http://www.w3.org/TR/REC-xml/#AVNormalize



Of course one could, let's say base64 encode
the string and preserve white space this way.

-- 
Mr Jyrki Saarinen    //
+358 50 3640535     //
Senior        \\   //  Design Engineer
Valimo         \\ //  Wireless Oy
http://         \X/   www.valimo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net