KtXmlReader
fun KtXmlReader(inputStream: InputStream, encoding: String? = null, relaxed: Boolean = false, expandEntities: Boolean = false): KtXmlReader
Create an XmlReader that can autodetect the encoding. It handles UTF8/16/32 based on both byte order marks and the xml declaration (check). In addition, it handles the encoding parameter of the file (mostly for 8-bit encodings).
Parameters
inputStream
The inputstream from which to read the bytes
encoding
The encoding to use, or null to use autodetection (including the encoding attribute in the XML)
expandEntities
Determines whether entities should be expanded by the parser (transparent to readers).
relaxed
Allow for some level of invalid content that is not strictly according to the standard.
