redundent / kotlin-xml-builder

A lightweight type safe builder to build xml documents in Kotlin
Apache License 2.0
151 stars 17 forks source link

make private fun parse(document: Document): Node public #43

Closed rkklai closed 3 years ago

rkklai commented 3 years ago

Hello, can you please make the private fun parse(document: Document) public? I have a Document that's created by JAXB and wanted to parse it directly? Now I need to serialize JAXB to string and then the parse will parse the string to Document and then process it. Also, the parse function creates a new document builder factory and a new document builder every time which is very expensive. So if the parse(Document) is made public, I can just create one copy of document builder and reuse it. Thanks!

redundent commented 3 years ago

Hi @rkklai This is done and published. It should be available in Maven Central soon

rkklai commented 3 years ago

Thanks a lot @redundent!