xrel.xml
Class Parser
java.lang.Object
|
+--xrel.xml.Parser
- public class Parser
- extends java.lang.Object
This sample program illustrates how to traverse a DOM tree
in order to get information about the document.
Method Summary |
void |
printResults(java.io.PrintStream out,
java.lang.String uri,
long parse,
long traverse1,
long traverse2,
int repetition)
Prints the results. |
void |
setDocumentInfo(ParserWrapper.DocumentInfo documentInfo)
Sets the parser wrapper. |
void |
writeTree(java.io.PrintStream fOut,
org.w3c.dom.Node node)
Traverses the specified node, recursively. |
static void |
xmlDump(java.io.PrintStream out,
java.lang.String filename)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parser
public Parser()
setDocumentInfo
public void setDocumentInfo(ParserWrapper.DocumentInfo documentInfo)
- Sets the parser wrapper.
writeTree
public void writeTree(java.io.PrintStream fOut,
org.w3c.dom.Node node)
- Traverses the specified node, recursively.
printResults
public void printResults(java.io.PrintStream out,
java.lang.String uri,
long parse,
long traverse1,
long traverse2,
int repetition)
- Prints the results.
xmlDump
public static void xmlDump(java.io.PrintStream out,
java.lang.String filename)