|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DOMParserDemo
DOMParserDemo
will take an XML file and display
the document using DOM.
Constructor Summary | |
DOMParserDemo()
|
Method Summary | |
static void |
main(java.lang.String[] args)
This provides a command line entry point for this demo. |
void |
performDemo(java.lang.String uri)
This parses the file, and then prints the document out using DOM. |
void |
printNode(org.w3c.dom.Node node,
java.lang.String indent)
This will print a DOM Node and then recurse
on its children. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DOMParserDemo()
Method Detail |
public void performDemo(java.lang.String uri)
This parses the file, and then prints the document out using DOM.
uri
- String
URI of file to parse.public void printNode(org.w3c.dom.Node node, java.lang.String indent)
This will print a DOM Node
and then recurse
on its children.
node
- Node
object to print.indent
- String
spacing to insert
before this Node
public static void main(java.lang.String[] args)
This provides a command line entry point for this demo.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |