redundent / kotlin-xml-builder

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

xml encoding prelude ? #6

Closed luistrigueiros closed 6 years ago

luistrigueiros commented 6 years ago

How can I get the initial xml encoding prelude to be outputted, something like:

<?xml version="1.0" encoding="UTF-8"?>

Thank you, Luis Oscar

redundent commented 6 years ago

Hey Luis, Sorry for the delay. There isn't a way to include that right now. I'll try to take a look at adding it tomorrow. Should be pretty easy.

luistrigueiros commented 6 years ago

Thank you, I love the code you have by the way.

redundent commented 6 years ago

Thanks!

I just published version 1.4.2 which has the ability to specify the encoding.