So you are generating Java classes from a schema, correct ? Are there
any special constructs within your XML schema re: (white)space
preservation ? Or do you simply use e.g. <xsd:string> as type ?

Werner

Sunil Ramaiah wrote:
> 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

Reply via email to