Skip to content
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

Customizable indentation #74

Closed
sbublava opened this issue Jan 25, 2023 · 1 comment
Closed

Customizable indentation #74

sbublava opened this issue Jan 25, 2023 · 1 comment
Assignees

Comments

@sbublava
Copy link

sbublava commented Jan 25, 2023

AbstractMX.message() ends up calling MxWriteImpl.write() which in turn makes use of XmlEventWriter.

XmlEventWriter always indents by 4 spaces (hard-coded). This is really undesirable due the size restriction of MX messages (100000 characters in our case - don't know if that limit comes from Swift or the messaging software we are using).

Please make this behaviour configurable via MxWriteParams / MxWriteConfiguration or use the indendation settings of the Marshaller used by MxWriteImpl.write() / BusinessAppHdrV02.xml() and so on.

The first option would be better since there is also no easy way to override Marshaller settings in Prowide.

@zubri zubri changed the title Don Customizable indentation Feb 21, 2023
zubri pushed a commit that referenced this issue Feb 28, 2023
@zubri
Copy link
Member

zubri commented Mar 7, 2023

Available in 9.3.6

Now you have an option to change the indentation string. The default is preserved as it was before. We might change that to two spaces by default in the future if we see more use cases for it. For the moment at least you can change it your self via parameter option when you Marshall the model into the XML.

Regards

@zubri zubri closed this as completed Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants