Contents | Package | Class | Tree | Deprecated | Index | Help XML for Java 1.0.4
PREV | NEXT SHOW LISTS | HIDE LISTS

Interface com.ibm.xml.parser.PreRootHandler


public interface PreRootHandler
An interface for receiving control from the XML4J parser after the internal and/or external DTD subsets are parsed, but before the document's root Element is parsed.

This interface is implemented by application programs which want to modify the specifics of the DTD that the XML document might be validated against.

For example, an application program may want to tune its standardized API description, which is expressed in the form of a DTD, in order to accomodate platform-specific limitations. In this case, the application is registered with the XML4J parser instance, prior to parsing the input stream, by using the addPreRootHandler method. Subsequently, the implemented handlePreRoot method will be invoked by the XML4J parser instance when the input stream is read; the implemented handlePreRoot method is responsible for manipulating the DTD.

Version:
Revision: 19 1.3 src/com/ibm/xml/parser/PreRootHandler.java, xml4jsrc, xml4j-jtcsv, xml4j_1_0_4
See Also:
addPIHandler

Method Summary
void  handlePreRoot(TXDocument document, java.lang.String rootName)
Interface to be implemented for receiving control after the external and/or internal DTD subsets are parsed, but before the document's root Element is parsed.
 

Method Detail

handlePreRoot

public void handlePreRoot(TXDocument document,
                          java.lang.String rootName)
Interface to be implemented for receiving control after the external and/or internal DTD subsets are parsed, but before the document's root Element is parsed.
Parameters:
document - Root Node of this Document.
rootName - The name of this document's DTD. This value is also known as the DOCTYPE and the root Element Name.
See Also:
addPreRootHandler, getDTD(), DTD

Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS