Am I imagining things, or are there currently no l...
# multiplatform
m
Am I imagining things, or are there currently no libraries for XML parsing / serialization in kotlin-native?
k
No XML libraries
m
Thanks, huh, that's sobering. I guess I have to take the interface route and pass a platform specific serializer/parser into the common code instead.
k
you might also be able to plug in to kotlinx.serializaton, so that you don't have to define the interface
worth looking into
m
Thanks guys!
c
So after more than 20 years I may be developing another XML parser
k
Not sure of availability, but will try to help out some on native side if useful
o
There are many small C XML parsers, like https://dev.yorhel.nl/yxml and it shall be easy to create pure .def klib using it
👍 1
c
I think until stdlib has common I/O library building XML or JSON support is going to be an ugly process.
k
There is json support now
k
Incase you you haven't seen this, https://github.com/Kotlin/kotlinx.serialization/issues/188 I expect once Kotlin Serialization goes stable, we'll see a first party XML extension
👍 2