de.hedenus.mobilexml
Interface XMLParserEventListener

All Known Implementing Classes:
XMLReader

public interface XMLParserEventListener

Interface for classes which wants to listen to events generated by the XMLParser.

Author:
Michael Hedenus

Method Summary
 void elementBegin(Element element, java.util.List attributeList)
          Method called when an tag start is encountered.
 void elementEnd(java.lang.String tagName)
          The method called when a tag end is encountered.
 void text(java.lang.String text)
          Method called when some plain text between two tags is encountered.
 

Method Detail

elementBegin

void elementBegin(Element element,
                  java.util.List attributeList)
                  throws XMLException
Method called when an tag start is encountered.

Parameters:
element - the current element
attributeList - the list of Attribute objects (Note: the list is live!)
Throws:
XMLException

text

void text(java.lang.String text)
          throws XMLException
Method called when some plain text between two tags is encountered.

Throws:
XMLException

elementEnd

void elementEnd(java.lang.String tagName)
                throws XMLException
The method called when a tag end is encountered.

Throws:
XMLException