Announcement Announcement Module
Collapse
No announcement yet.
XMLStream Documentation Error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • XMLStream Documentation Error

    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:
    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.
    But the example use 'customer' instead of 'trade':
    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>
    It is a mis-comprehension from my part or a documentation error ?

    Thanks for the clarification/correction,

    Regards,

    Alois Cochard
    http://aloiscochard.blogspot.com
    http://www.twitter.com/aloiscochard

  • #2
    I already saw a similar comment a while back and I think the doc has been fixed meanwhile. The best way to make sure it's fixed is to search for such a request in Jira and if it does not exist yet, open an new improvement

    https://jira.springsource.org/browse/BATCH

    Comment


    • #3
      Originally posted by snicoll View Post
      I already saw a similar comment a while back and I think the doc has been fixed meanwhile. The best way to make sure it's fixed is to search for such a request in Jira and if it does not exist yet, open an new improvement

      https://jira.springsource.org/browse/BATCH
      Thanks for your answer and to have pointed me to the good direction.

      I didn't found any existing issue about the spring batch documentation, so I created a new one for this error.

      EDIT:
      Here it is: http://jira.springframework.org/browse/BATCH-1548

      Alois Cochard
      http://aloiscochard.blogspot.com
      http://www.twitter.com/aloiscochard
      Last edited by alois.cochard; Apr 6th, 2010, 03:03 AM. Reason: Added link to issue

      Comment

      Working...
      X