(or should I just go with Java's ones)
# getting-started
b
(or should I just go with Java's ones)
s
when you say Kotlin-aware, do you mean, like, conversion of XML entities into, say, data classes?
b
yes
I can also use things with paths and so on
s
Jackson has a drop-in Kotlin module and does just fine with XML for the most part
b
oh wow jackson does a lot of other formats too
s
yep!
if you’re looking for kotlin codegen using the DTD I think you may be out of luck, however 😕
you can still generate pojos using JAXB or XmlBeans but I understand if you don’t consider that good enough
b
so I may have to create the dataclass myself?
s
unfortunately, yes
b
or write a kotlin code gen from the DTD
s
right
b
sounds painful 😄
s
I would personally agree, yeah
Unfortunately there doesn’t seem to be much work on this by kotlin library authors, probably since most folks consider XML terribly old hat
b
soon it will be JSON 😉
have you tried to parse XML with Jackson that may have different root elements (according to the DTD)?
I guess I can't use jackson… because I have mixed content…