|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XMLParserListener
Can be added to the XMLParser to receive events.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 String
void 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 text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||