Results 1 to 4 of 4

Thread: Inhibiting XML Header in StaxEventItemWriter

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    Gloucestershire in the United Kingdom
    Posts
    10

    Default 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. #2
    Join Date
    Feb 2008
    Posts
    488

    Default

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

  3. #3
    Join Date
    Jul 2005
    Posts
    156

    Default

    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

  4. #4
    Join Date
    Jul 2005
    Posts
    156

    Default

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

    Thanks !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •