Which I think is actually valid, as you don't specify (anywhere) that you want whitespaces to be preserved. I hope I am not wrong with this, but one option would be (by the means of a mapping file) to specify that you want whitespaces to be preserved.
Werner > -----Ursprüngliche Nachricht----- > Von: Sunil Ramaiah [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 03. Mai 2007 21:51 > An: [email protected] > Betreff: Re: [castor-user] Castor inserts newline in XML if the line is > too long > > No I am not using a mapping file. This happens with any schema I have. > I am using Castor 0.9.7 > > If the text content in a tag is too long, then it does not come in one > line. It gets split. > > Thanks, > Sunil. > > > On 5/3/07, Werner Guttmann <[EMAIL PROTECTED]> wrote: > > Are you using a mapping file ? And if so, what does the field mapping > > for this field in question look like ? > > > > Werner > > > > Sunil Ramaiah wrote: > > > This is during marshalling. > > > > > > Thanks, > > > Sunil. > > > > > > On 5/3/07, Werner Guttmann <[EMAIL PROTECTED]> wrote: > > >> Is this during marshalling and/or unmarshalling ? > > >> > > >> Werner > > >> > > >> Sunil Ramaiah wrote: > > >> > This is the output I get in the XML with the indent turned on. > There > > >> > is a line break at the end of each line. Looks like after 86 > columns > > >> > in a line, it puts a new line and wraps the content. > > >> > > > >> > <MyText> > > >> > <Text>This is a text. This is a text. This > is a > > >> > text. This is a text. This is a text. > This > > >> > is a text. This is a text. This is a > text. > > >> > This is a text. This is a text. This is > a > > >> > text. This is a text. This is a text. > This > > >> > is a text. This is a text. This is a > text. > > >> > This is a text. This is a text. This is > a > > >> > text. This is a text. This is a text. > This > > >> > is a text. This is a text. This is a > text. > > >> > This is a text. This is a text. This is > a > > >> > text. This is a text. This is a text. > This > > >> > is a text. This is a text. This is a > text. > > >> > This is a text. This is a text. This is > a > > >> > text. This is a text. This is a text. > This > > >> > is a text. This is a text. This is a > text. > > >> > This is a text. This is a text. This is > a > > >> > text. This is a text. This is a text. > This > > >> > is a text. This is a text. This is a > text. > > >> > This is a text. This is a text. This is > a > > >> > text. This is a text. This is a text. > This > > >> > is a text. This is a text. This is a > text. > > >> > This is a text. This is a text. This is > a > > >> > text. This is a text. This is a text. > This > > >> > is a text. This is a text. </Text> > > >> > </MyText> > > >> > > > >> > > > >> > This is my expected output - > > >> > > > >> > <MyText> > > >> > <Text>This is a text. This is a text. This > is > > >> > a text. This is a text. This is a text. This is a text. This is a > > >> > text. This is a text. This is a text. This is a text. This is a > text. > > >> > This is a text.</Text> > > >> > </MyText> > > >> > > > >> > Thanks, > > >> > Sunil. > > >> > > > >> > > > >> > On 4/20/07, Werner Guttmann <[EMAIL PROTECTED]> wrote: > > >> >> Can you give us an example ? > > >> >> > > >> >> Werner > > >> >> > > >> >> Sunil Ramaiah wrote: > > >> >> > Hi, > > >> >> > > > >> >> > If I have some text which is too long, then castor breaks it and > > >> >> > inserts new line and formats it. I have the indent set to true > but I > > >> >> > want only the tags to be on separate lines and not split the > long > > >> >> > lines. > > >> >> > > > >> >> > Does anyone know how I can configure this ? > > >> >> > > > >> >> > Thanks, > > >> >> > Sunil. > > >> >> > > > >> >> > > > >> --------------------------------------------------------------------- > > >> >> > 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 > > > > > > > > > --------------------------------------------------------------------- > > 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

