com.lowagie.text.xml.simpleparser

Interface SimpleXMLDocHandler

public interface SimpleXMLDocHandler

The handler for the events fired by SimpleXMLParser.

Author: Paulo Soares (psoares@consiste.pt)

Method Summary
voidendDocument()
Called after the document is parsed.
voidendElement(String tag)
Called when an end tag is found.
voidstartDocument()
Called when the document starts to be parsed.
voidstartElement(String tag, HashMap h)
Called when a start tag is found.
voidtext(String str)
Called when a text element is found.

Method Detail

endDocument

public void endDocument()
Called after the document is parsed.

endElement

public void endElement(String tag)
Called when an end tag is found.

Parameters: tag the tag name

startDocument

public void startDocument()
Called when the document starts to be parsed.

startElement

public void startElement(String tag, HashMap h)
Called when a start tag is found.

Parameters: tag the tag name h the tag's attributes

text

public void text(String str)
Called when a text element is found.

Parameters: str the text element, probably a fragment.