-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
writer function overrides no longer functional from end(options)? #254
Comments
@oozcitak also for me, this method not work like as docs |
my workaround was to replace the output function in xml2js, ending:
basically - passing in a created stringWriter into which the options were inserted at creation, rather than passing the options into doc.end(). |
please update the documentation :( |
I just discovered what seems to be the issue - "pretty" has changed to "prettyPrint". So ele.end({ prettyPrint: true }) works! Thanks to IntelliJ's pop-up documentation with links for leading me to that! |
using xmlbuilder via xml2js, this file:
https://github.com/Leonidas-from-XIV/node-xml2js/blob/master/src/builder.coffee
calls end with writer options.
In previous versions, writer options could look like:
but the current version (and from version 11?) discards the 'writer' part of the options in 'filterOptions' (in XMLWriterBase).
the wiki:
https://github.com/oozcitak/xmlbuilder-js/wiki
still states the functions can be overridden.
Is there a way to override these functions?
br,
Simon
The text was updated successfully, but these errors were encountered: