Package com.iplanet.dpro.parser
Class WebtopParser
java.lang.Object
com.iplanet.dpro.parser.WebtopParser
XMLParser provides a way for applications to handle a hook into
applications and applications and its server.
-
Constructor Summary
ConstructorDescriptionConstructs aWebtopParser
instance.WebtopParser
(boolean usegeneric) Sets whether to use the defaultGenericNode
as the node type. -
Method Summary
-
Constructor Details
-
WebtopParser
public WebtopParser()Constructs aWebtopParser
instance. -
WebtopParser
public WebtopParser(boolean usegeneric) Sets whether to use the defaultGenericNode
as the node type.- Parameters:
usegeneric
-true
ifGenericNode
type is to be used.
-
-
Method Details
-
main
- Throws:
Exception
-
parse
Parses an XML document from a String variable.- Parameters:
s
- The XML document.- Throws:
Exception
- if there are unsupported encoding issues.
-
parse
Parses an XML document.- Parameters:
xmlin
- the XML document.- Returns:
- the ParseOutput object from walking and processing the node.
- Throws:
Exception
- if there are IO or XML parsing exceptions.
-
register
Registers a call back function.- Parameters:
elemname
- The tag name of this node.classname
- The call back function.
-