newReader

Create a new XML reader with the given source node as starting point. Depending on the configuration, this parser can be platform specific. This would normally do some level of charset detection (e.g. using the xml declaration, a.o. UTF BOM based detection).

Return

A (potentially platform specific) XmlReader, generally a DomReader

Parameters

inputStream

The inputstream to read


fun IXmlStreaming.newReader(inputStream: InputStream, encoding: String): XmlReader

Create a new XML reader with the given source node as starting point. Depending on the configuration, this parser can be platform specific.

Return

A (potentially platform specific) XmlReader, generally a DomReader

Parameters

inputStream

The inputstream to read

encoding

The character encoding used