Package com.iplanet.dpro.parser
Class WebtopParser
- java.lang.Object
-
- com.iplanet.dpro.parser.WebtopParser
-
@SupportedAll public class WebtopParser extends Object
XMLParser provides a way for applications to handle a hook into applications and applications and its server.
-
-
Constructor Summary
Constructors Constructor Description WebtopParser()
Constructs aWebtopParser
instance.WebtopParser(boolean usegeneric)
Sets whether to use the defaultGenericNode
as the node type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] argv)
Object
parse(InputStream xmlin)
Parses an XML document.Object
parse(String s)
Parses an XML document from a String variable.void
register(String elemname, String classname)
Registers a call back function.
-
-
-
Method Detail
-
parse
public Object parse(String s) throws Exception
Parses an XML document from a String variable.- Parameters:
s
- The XML document.- Throws:
Exception
- if there are unsupported encoding issues.
-
parse
public Object parse(InputStream xmlin) throws Exception
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.
-
-