Greetings,
I'm actually reading the spring batch 2.1.0 documentation, and it seems there is an error in the XMLStream part:
http://static.springsource.org/sprin...ReadingWriting
The documentation say for Root Element Name:
But the example use 'customer' instead of 'trade':Code:Name of the root element of the fragment that constitutes the object to be mapped. The example configuration demonstrates this with the value of trade.
It is a mis-comprehension from my part or a documentation error ?Code:<bean id="itemReader" class="org.springframework.batch.item.xml.StaxEventItemReader"> <property name="fragmentRootElementName" value="customer" /> <property name="resource" value="data/iosample/input/input.xml" /> <property name="unmarshaller" ref="customerCreditMarshaller" /> </bean>
Thanks for the clarification/correction,
Regards,
Alois Cochard
http://aloiscochard.blogspot.com
http://www.twitter.com/aloiscochard


Reply With Quote
