CoreOffice / XMLCoder

Easy XML parsing using Codable protocols in Swift
https://coreoffice.github.io/XMLCoder/
MIT License
793 stars 104 forks source link

Adds `.noEmptyElements` option to OutputFormatting #264

Closed nighthawk closed 1 year ago

nighthawk commented 1 year ago

Opts out of empty element shorthand.


I'm using XMLCoder to generate XML from my Swift data models for use in another system that doesn't handle the empty-elements, so I've added this option to allow generating XML that it can ingest. Not sure if OutputFormatting is the right place for this.

Joannis commented 1 year ago

I think that OutputFormatting is fine. Thanks for the contribution! I think I can merge this if the tests succeed

Joannis commented 1 year ago

I know that the one test that failed in your previous commit is not your fault.

Joannis commented 1 year ago

Tagged as 0.17.0

nighthawk commented 1 year ago

Thank you, @Joannis!