Closed StefanOltmann closed 1 year ago
I'm trying to replace the usage of org.xml.sax API.
The original code looks like this:
private fun parseInputSource(inputStream: java.io.InputStream): nl.adaptivity.xmlutil.dom.Document { return try { val inputSource = org.xml.sax.InputSource(inputStream) val factory = DocumentBuilderFactory.newInstance() val builder = factory.newDocumentBuilder() builder.setErrorHandler(null) builder.parse(inputSource) } catch (ex: org.xml.sax.SAXException) { throw ex } }
How do I need to use xmlutil to get that DOM Document?
I'm trying to replace the usage of org.xml.sax API.
The original code looks like this:
How do I need to use xmlutil to get that DOM Document?