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