|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumich.cac.queryengine.DOMUtil
Sample Utility class to work with DOM document
Constructor Summary | |
DOMUtil()
|
Method Summary | |
static int |
countByTagName(java.lang.String tag,
org.w3c.dom.Document document)
Count Elements in Document by Tag Name |
static org.w3c.dom.Document |
parse(java.lang.String fileName)
Parse the XML file and create Document |
static void |
printDOM(org.w3c.dom.Node node)
Prints the specified node, then prints all of its children. |
static void |
writeXmlFile(org.w3c.dom.Document doc,
java.lang.String filename)
|
static void |
writeXmlToFile(java.lang.String filename,
org.w3c.dom.Document document)
This method writes a DOM document to a file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DOMUtil()
Method Detail |
public static void writeXmlFile(org.w3c.dom.Document doc, java.lang.String filename)
public static void printDOM(org.w3c.dom.Node node)
public static org.w3c.dom.Document parse(java.lang.String fileName)
fileName
-
public static void writeXmlToFile(java.lang.String filename, org.w3c.dom.Document document)
filename
- document
- public static int countByTagName(java.lang.String tag, org.w3c.dom.Document document)
tag
- document
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |