XML for Java Compatibility API 2.0.11

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: 91 1.5 src/com/ibm/xml/parser/TagHandler.java, parser, xml4j2, xml4j2_0_11

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.
 

Method Detail

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)

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), ElementHandler

XML for Java Compatibility API 2.0.11