xmlbuilder-js icon indicating copy to clipboard operation
xmlbuilder-js copied to clipboard

Ordered element attributes?

Open pedro93 opened this issue 8 years ago • 4 comments

Is there an output option that will sort the order of attributes by their alphabetical order for nodes? Regardless of order of insertion. This arbitrary and merely a curiosity.

Thanks :)

pedro93 avatar Apr 13 '16 10:04 pedro93

There is currently no such option. Although it might be useful to add a canonical XML writer.

oozcitak avatar Apr 13 '16 11:04 oozcitak

👍 for the feature.

From my limited user experience of the lib, this is mostly useful when creating custom objects and doing root.ele(obj). Can be canonical writer by implemented at this level or is there a better solution?

pedro93 avatar Apr 13 '16 11:04 pedro93

Hello thanks for the great work. Was this actually implemented?

raulastu avatar Nov 04 '18 13:11 raulastu

Nope, reopening.

oozcitak avatar Nov 05 '18 14:11 oozcitak