| java.lang.Object com.sun.portal.rewriter.util.xml.DOMUtil
DOMUtil | public class DOMUtil (Code) | | |
countByTagName | public static int countByTagName(String tag, Document document)(Code) | | Count Elements in Document by Tag Name
Parameters: tag - Parameters: document - number elements by Tag Name |
parse | public static Document parse(String fileName)(Code) | | Parse the XML file and create Document
Parameters: fileName - Document |
printDOM | public static void printDOM(Node node)(Code) | | Prints the specified node, then prints all of its children.
|
writeXmlToFile | public static void writeXmlToFile(String filename, Document document)(Code) | | This method writes a DOM document to a file
Parameters: filename - Parameters: document - |
|
|