Mar 16th, 2009, 09:11 AM
Inhibiting XML Header in StaxEventItemWriter
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.
Mar 16th, 2009, 09:56 AM
startDocument() is now 'protected'. You will see this change in 2.0.0.RC2
Mar 16th, 2009, 02:47 PM
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 ?
Mar 16th, 2009, 02:50 PM
Oups, didn't see fix was already reported :