com.ibm.xml.parser
Interface TagHandler
- All Known Implementing Classes:
- SAXDriver
- public abstract interface TagHandler
An interface for handling tag start and tag end events that are recognized by the XML4J parser.
Refer to the SAXDriver class for a sample implementation of this interface. SAXDriver
implements this interface in order to propage events across the SAX API.
- Version:
- Revision: 29 1.3 src/com/ibm/xml/parser/TagHandler.java, xml4jsrc, xml4j-jtcsv, xml4j_1_1_16
Method Summary |
void |
handleEndTag(TXElement element,
boolean empty)
Interface to be implemented in order to receive control when an end tag is recognized
by the parser. |
void |
handleStartTag(TXElement element,
boolean empty)
Interface to be implemented in order to receive control when a start tag is recognized
by the parser. |
handleStartTag
public void handleStartTag(TXElement element,
boolean empty)
- Interface to be implemented in order to receive control when a start tag is recognized
by the parser. Control is transferred prior to parsing any children.
- Parameters:
element
- TXElement that was parsed.empty
- =true if the Element is an empty Element such as
<FOO key="val"/>
; otherwise, =false.- See Also:
handleEndTag(com.ibm.xml.parser.TXElement, boolean)
,
SAXDriver.handleStartTag(com.ibm.xml.parser.TXElement, boolean)
handleEndTag
public void handleEndTag(TXElement element,
boolean empty)
- Interface to be implemented in order to receive control when an end tag is recognized
by the parser. Control is transferred prior to calling any ElementHandlers.
- Parameters:
element
- TXElement that was parsed.empty
- =true if the Element has no children such as <FOO key="val"/>
or or <FOO ...></FOO>
; otherwise, =false.- See Also:
handleStartTag(com.ibm.xml.parser.TXElement, boolean)
,
SAXDriver.handleEndTag(com.ibm.xml.parser.TXElement, boolean)
,
ElementHandler