Simple XML parsing in Swift
I renamed XMLIndexerDeserializable
to be XMLObjectDeserialization
- its purpose is to deserialize object structures like classes or structs. So, multiple values. Then, there is a new protocol named XMLValueDeserialization
- it serves the purpose of both XMLElementDeserializable
and XMLAttributeDeserializable
. It is only used for custom value deserialization. I hope this will clarify the usage a lot. It makes sense to me anyway!
This should cover the use case at https://github.com/drmohundro/SWXMLHash/discussions/148.
Multiple times when helping people, I'd notice that the nodeIsInvalid
error would get thrown, but the error message was just about impossible to determine what was wrong. The code had implemented CustomStringConvertible
but everyone was using localizedDescription
. Now, errors implement LocalizedError
, too, so it is a lot more obvious to see the elements that had caused issues.
The code had all been lumped into two Swift files since the beginning. It was unwieldy then, but it has just gotten worse. So I gave in and broke them all out into their own files by type. Much better.
Released on 2021-09-28.
SWXMLHash
to XMLHash
so that the module name (i.e. SWXMLHash
) doesn't conflict with the class name. There are a decent number of issues related to naming conflicts so hopefully this will avoid them. Fixes #242, see also links on PR #246 where other similar issues are documented.Released on 2019-08-28.
Released on 2019-03-29.
Released on 2019-03-06.
Released on 2018-11-26.
Released on 2018-10-15.
swift_version
to SWXMLHash.podspec
(via #198)Released on 2018-09-18.
WATCHOS_DEPLOYMENT_TARGET
to 3.0
(via [#193 (https://github.com/drmohundro/SWXMLHash/pull/193))Released on 2018-08-04.
SWIFT_VERSION
to 4.0
(via #191)