XMLTokener

open class XMLTokener : JSONTokener

The XMLTokener extends the JSONTokener to provide additional methods for the parsing of XML texts.

Author

JSON.org

Constructors

Link copied to clipboard
open fun XMLTokener(s: String)
Construct an XMLTokener from a string.

Functions

Link copied to clipboard
open fun back()
Link copied to clipboard
open fun dehexchar(hex: Char): Int
Link copied to clipboard
open fun more(): Boolean
Link copied to clipboard
open fun next(): Char
open fun next(length: Int): String
Link copied to clipboard
open fun nextCDATA(): String
Get the text in the CDATA block.
Link copied to clipboard
open fun nextClean(): Char
Link copied to clipboard
open fun nextContent(): Any
Get the next XML outer token, trimming whitespace.
Link copied to clipboard
open fun nextEntity(ampersand: Char): Any

Return the next entity. These entities are translated to Characters:
    &  '  >  <  ".
Link copied to clipboard
open fun nextMeta(): Any

Returns the next XML meta token. This is used for skipping over <!...>
and <?...?> structures.
 
Link copied to clipboard
open fun nextString(quote: Char): String
Link copied to clipboard
open fun nextTo(excluded: String): String
Link copied to clipboard
open fun nextToken(): Any

Get the next XML Token. These tokens are found inside of angle
brackets. It may be one of these characters: / > = ! ? or it
may be a string wrapped in single quotes or double quotes, or it may be a
name.
Link copied to clipboard
open fun nextValue(): Any
Link copied to clipboard
open fun skipPast(to: String)
Skip characters until past the requested string.
Link copied to clipboard
open fun skipTo(to: Char): Char
Link copied to clipboard
open fun syntaxError(message: String): JSONException
Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
The table of entity values.