newReader

abstract fun newReader(input: CharSequence, expandEntities: Boolean = false): XmlReader

Create a new XML reader with the given input. Depending on the configuration, this parser can be platform specific.

Return

A (potentially platform specific) XmlReader

Parameters

input

The text to be parsed

expandEntities

If true, entities are directly expanded (throwing errors if not found)


abstract fun newReader(reader: Reader, expandEntities: Boolean = false): XmlReader

Create a new XML reader with the given input. Depending on the configuration, this parser can be platform specific.

Return

A (potentially platform specific) XmlReader

Parameters

reader

The reader/stream to use as input

expandEntities

If true, entities are directly expanded (throwing errors if not found)


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

source

The node to expose