com.natpryce.xmlk.jvm_default_dom_implementation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snodge Show documentation
Show all versions of snodge Show documentation
A small, extensible Java library to randomly mutate JSON documents. Useful for fuzz testing.
package com.natpryce.xmlk
import org.w3c.dom.DOMImplementation
import javax.xml.parsers.DocumentBuilderFactory
fun defaultDOMImplementation() =
DocumentBuilderFactory.newInstance().apply { isCoalescing = false }.newDocumentBuilder().domImplementation
fun DOMImplementation.createEmptyDocument() =
createDocument(null, null, null)