net.sf.logdistiller.xml
Class DOMUtils
java.lang.Object
net.sf.logdistiller.xml.DOMUtils
public class DOMUtils
- extends Object
Miscellaneous utilities for DOM.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getPCDATAByTagName
public static String getPCDATAByTagName(Element elmt,
String tagName)
getPCDATAByTagName
public static String getPCDATAByTagName(Element elmt,
String tagName,
boolean normalize)
getPCDATA
public static String getPCDATA(Element element,
boolean normalize)
- Computes the resulting string of a
#PCDATA
element: it can consist in the XML document of a
combination of nodes Text, EntityReference and CDATASection, with Comment.
- Parameters:
normalize
- normalize the element before computing?
getPCDATA
public static String getPCDATA(Element elmt)
getChildElementsByTagName
public static Iterator getChildElementsByTagName(Element element,
String tagName)
getNodeTypeAsString
public static String getNodeTypeAsString(Node node)
Copyright © 2004-2009. All Rights Reserved.