public interface XMLParserListener
XMLParser to receive events.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Triggered when parsing is finished and the stream will be closed.
|
void |
comment(String comment)
Triggered for comments that are found.
|
void |
endElement(String tag,
String ns)
Triggered on a closing tag.
|
void |
init()
Triggered when parsing has started.
|
void |
startElement(String tag,
Map<String,String> attributes,
String ns)
Triggered on an opening tag.
|
void |
text(String text)
Called when text is encountered.
|
void |
unknownText(String text)
Triggered for text found outside root tag.
|
void startElement(String tag, Map<String,String> attributes, String ns)
tag - the tag of the elementattributes - the attributes found on the tagns - the namespace or empty Stringvoid endElement(String tag, String ns)
tag - the tagns - the namespace or empty Stringvoid unknownText(String text)
text - the textvoid comment(String comment)
comment - the commentvoid init()
void close()
void text(String text)
text - the textCopyright © 2020. All rights reserved.