Created
July 8, 2021 05:48
-
-
Save torgeir/fdac864b145c6598cd5372f44460a956 to your computer and use it in GitHub Desktop.
Org w3c dom serializer xml node to string kotlin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://xerces.apache.org/xerces2-j/faq-dom.html | |
private val loadSaveSerializer by lazy { | |
val registry = DOMImplementationRegistry.newInstance() | |
val domImplementation = registry.getDOMImplementation("LS") as DOMImplementationLS | |
domImplementation.createLSSerializer() | |
} | |
loadSaveSerializer.writeToString(..) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment