Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC

Class TDomParser

Method Summary
constructor
         Initializes the object internal state.
parse fileName
parse inputStream
         Parses the textual representation of an XML and produces the DOM representation as a TDocument object.
setNativeParser javaClassName
         Specifies the Java XML parser to use during the DOM construction.
setParser parser
         Specifies the XML parser to use during the DOM construction.

Method Detail

constructor

TDomParser constructor

Initializes the object internal state.


parse

TDomParser parse fileName
TDomParser parse inputStream

Parses the textual representation of an XML and produces the DOM representation as a TDocument object.

Parameters:
fileName - String repersenting the name of the file to parse.
inputStream - A TInput where the textual representation of the XML document will be read from.
Returns:
A reference to a newly created TDocument object with the DOM representation of the XML document.

Prior to calling this method the apropriate XML parser must have been set by a call to one of the setParser or setNativeParser methods.

setNativeParser

TDomParser setNativeParser javaClassName

Specifies the Java XML parser to use during the DOM construction.

Parameters:
javaClassName - Name of a Java class that must implement the org.xml.sax.Parser interface.
Returns:
A reference to the object for which this method was called.

A TXmlParser will be created internally to be used as XML parser. This TXmlParser will use the javaClassName native parser .

Either this method or the setParser method must be called prior to invoking parse.


setParser

TDomParser setParser parser

Specifies the XML parser to use during the DOM construction.

Parameters:
parser - A TXmlParser.
Returns:
A reference to the object for which this method was called.

Either this method or the setParser method must be called prior to invoking parse.



Overview Module Function Class Tea 3.1.0 Reference Documentation
© 2002 PDM&FC
Report a bug or request new features
© 2002