Easy XML parsing using Codable protocols in Swift
Full Changelog: https://github.com/CoreOffice/XMLCoder/compare/0.17.0...0.17.1
.noEmptyElements
option to OutputFormatting by @nighthawk in https://github.com/CoreOffice/XMLCoder/pull/264
Full Changelog: https://github.com/CoreOffice/XMLCoder/compare/0.16.0...0.17.0
Full Changelog: https://github.com/CoreOffice/XMLCoder/compare/0.15.0...0.16.0
PropertyWrappersTest
by @MaxDesiatov in https://github.com/CoreOffice/XMLCoder/pull/246
Full Changelog: https://github.com/CoreOffice/XMLCoder/compare/0.14.0...0.15.0
isAllWhitespace
implementation by @LucianoPAlmeida in https://github.com/CoreOffice/XMLCoder/pull/235
AnySequence
public XMLDecodableSequence
by @MaxDesiatov in https://github.com/CoreOffice/XMLCoder/pull/244
Full Changelog: https://github.com/CoreOffice/XMLCoder/compare/0.13.1...0.14.0
This is a bugfix release that fixes an edge case with the use of trimValueWhitespaces
configuration on XMLDecoder
, and adds official Windows support for users of Swift 5.5. Many thanks to @MartinP7r for multiple contributions to this release!
Closed issues:
Merged pull requests:
trimValueWhitespaces
removing needed white-spaces (#226) via @MartinP7r
key
(#225) via @MartinP7r
This release adds two new features and a bugfix.
Namely:
removeWhitespaceElements
boolean flag on XMLDecoder
allows removing elements that have purely whitespace content.convertFromUppercase
case on KeyDecodingStrategy
allows converting ALL_CAPS_SNAKE_CASE
to camelCase
.Many thanks to (in alphabetical order) @huwr, @kneekey23, and @wooj2 for their contributions!
Closed issues:
Merged pull requests:
This release adds a few new features:
charactersEscapedInAttributes
and charactersEscapedInElements
properties on XMLEncoder
that allow customizing how certain characters are escaped.TopLevelEncoder
Combine protocol conformance when subclassing XMLEncoder
.prettyPrintIndentation
property on XMLEncoder
, which can take XMLEncoder.PrettyPrintIndentation
values such as .tabs(1)
or .spaces(2)
.Thanks to Kenta Kubo for the contribution!
Closed issues:
<itunes:episode>
tags (#201)
in XML attributes (#185)"
are not decoded equally (#184)Merged pull requests:
DynamicNodeEncoding
for root elements (#195) via @MaxDesiatov
XMLEncoder
(#188) via @MaxDesiatov
prettyPrintIndentation
property on XMLEncoder
(#186) via @MaxDesiatov
TopLevelEncoder
implementation overridable (#182) via @kkk669
This release fixes an issue, where non-string values used CDATA encoding. Thanks to @ksoftllc for reporting it!
Closed issues:
Merged pull requests:
This is a bugfix and feature release, which fixes an issue with CDATA decoding and adds TopLevelEncoder
conformance to XMLEncoder
. New rootAttributes
argument has been added to the encode
function on XMLEncoder
that allows adding attributes on root elements without adding them to your model types. Thanks to @portellaa, @Kirow and others for their contributions and bug reports!
Closed issues:
Merged pull requests: