Announcement Announcement Module
Collapse
No announcement yet.
Inhibiting XML Header in StaxEventItemWriter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Inhibiting XML Header in StaxEventItemWriter

    Hi...

    I'm trying to inhibit the StaxEventItemWriter from creating a header in my output XML.

    Looking at the JavaDoc for the startDocument method it looks like that method should be 'protected' by implication that it should be overridden. In RC1 however, it is 'private'!

    IMHO 'private' is fine, an 'inhibit header' flag would be useful, or perhaps check for a situation where 'encoding' and 'version' are blank/null.

    I can circumvent the problem by duplicating this class in my project code, though for obvious reasons that's not something for the long term.

    Rgds,
    Steve.

  • #2
    startDocument() is now 'protected'. You will see this change in 2.0.0.RC2

    Comment


    • #3
      Hello,

      Could this change be reported in the 1.1.x release please or is the 1.1.4 release considered the last 1.1.x release ?

      Thanks

      Comment


      • #4
        Oups, didn't see fix was already reported :
        http://jira.springframework.org/browse/BATCH-1122

        Thanks !

        Comment

        Working...
        X