Description
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:
- CustomStaxEventItemWriter.java (21.65 kB)
- xml_format.zip (18.83 kB)
4 votes, 10 watchers