java.lang.Object | ||
↳ | org.json.JSONTokener | |
↳ | org.json.XMLTokener |
The XMLTokener extends the JSONTokener to provide additional methods for the parsing of XML texts.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
entity | The table of entity values. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct an XMLTokener from a string.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the text in the CDATA block.
| |||||||||||
Get the next XML outer token, trimming whitespace.
| |||||||||||
Return the next entity.
| |||||||||||
Returns the next XML meta token.
| |||||||||||
Get the next XML Token.
| |||||||||||
Skip characters until past the requested string.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.json.JSONTokener
| |||||||||||
From class
java.lang.Object
|
The table of entity values. It initially contains Character values for amp, apos, gt, lt, quot.
Get the text in the CDATA block.
]]>
.JSONException | If the ]]> is not found.
|
---|
Get the next XML outer token, trimming whitespace. There are two kinds of tokens: the '<' character which begins a markup tag, and the content text between markup tags.
JSONException |
---|
Return the next entity. These entities are translated to Characters:
& ' > < "
.
ampersand | An ampersand character. |
---|
JSONException | If missing ';' in XML entity. |
---|
Returns the next XML meta token. This is used for skipping over and ...?> structures.
< > / = ! ?
) are returned as
Character, and strings and names are returned as Boolean. We don't care
what the values actually are.JSONException | If a string is not properly closed or if the XML is badly structured. |
---|
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.
JSONException | If the XML is not well formed. |
---|
Skip characters until past the requested string. If it is not found, we are left at the end of the source with a result of false.
to | A string to skip past. |
---|
JSONException |
---|