-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add setter for "standalone" attribute in StaxEventItemWriter #758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @mminella, just wanted to check with you, if you are active on this one, or I can give it a try. Thank you. |
Hi @parikshitdutta I assigned this to you as your requested. Let me know if you don't have time to work on it. |
Thanks @mminella, I will take care of it. |
Hi @mminella, Reason: whereas, Thank you. |
Hi @mminella, Please have a look at PR #3764, I will look forward to your feedback. Thank you. |
Resolved with #3764 . |
Uh oh!
There was an error while loading. Please reload this page.
Mahmoud Ben Hassine opened BATCH-2856 and commented
As of v4.2.0, the only way to add the
standalone
attribute in the XML declaration of the output file ofStaxEventItemWriter
is to extend the writer and overridestartDocument
(as stated in its javadoc). Here is an example:The
StaxEventItemWriter
provides setters for theversion
andencoding
attributes, but not for thestandalone
attribute. I believe it can also provide a setter forstandalone
as this will make it easier to customize the XML declaration rather than having to extend the writer and overridestartDocument
(which is error prone BTW if we forget to add the root element as shown in the example above).NB: The example shown above works with Java 9+, see https://bugs.openjdk.java.net/browse/JDK-8139584
Affects: 4.2.0
Reference URL: https://stackoverflow.com/questions/58714744/staxeventitemwriter-xml-header
The text was updated successfully, but these errors were encountered: