Skip to content

StaxEventItemWriter fails to create formatted output [BATCH-1835] #1754

Open
@spring-projects-issues

Description

@spring-projects-issues

Oliver Theissen opened BATCH-1835 and commented

A Jaxb2Marshaller used in a StaxEventItemWriter fails to create formatted XML output (one element per line, ident lines) even if the Jaxb2Marshaller has been configured to do so.
See the sample application (STS project, maven build) to reproduce: this application reads some sample data from a csv file in data/in and creates two XML files in the directory data/out: one XML file created by a StaxEventItemWriter and the other created by a "home made" XmlItemWriter. Both ItemWriters use the same Jaxb2Marshaller bean for marshalliung but produce different output: the output of the StaxEventItemWriter fails to be formatted.


Affects: 2.1.8

Reference URL: http://forum.springsource.org/archive/index.php/t-69570.html

Attachments:

4 votes, 10 watchers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions