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 element
attributes
- the attributes found on the tag
ns
- the namespace or empty String
void endElement(String tag, String ns)
tag
- the tag
ns
- the namespace or empty String
void unknownText(String text)
text
- the text
void comment(String comment)
comment
- the comment
void init()
void close()
void text(String text)
text
- the text
Copyright © 1998–2018. All rights reserved.