XmlUtilities

class XmlUtilities(documentBuilderFactory: DocumentBuilderFactory = DocumentBuilderFactory.newInstance())

Commonly used XML utilities.

Author

Griefed

Parameters

documentBuilderFactory

used for parsing XML-files.

Constructors

Link copied to clipboard
constructor(documentBuilderFactory: DocumentBuilderFactory = DocumentBuilderFactory.newInstance())

Functions

Link copied to clipboard
fun getXml(manifest: File): Document

Reads the file into a Document and Document.normalize it.

fun getXml(manifest: InputStream): Document

Reads the input-stream into a Document and Document.normalize it.

fun getXml(string: String): Document

Reads the string into a Document and Document.normalize it.