readText

private fun readText(parser: XmlPullParser): String

Reads the text between opening and closing XML tags.

Return

an empty String ("") if there is no text between the XML tags and the text if there is any text between the tags.

Parameters

parser

is the XmlPullParser instance that was created in parse method.