net.sf.logdistiller.xml
Class DOMUtils

java.lang.Object
  extended by net.sf.logdistiller.xml.DOMUtils

public class DOMUtils
extends Object

Miscellaneous utilities for DOM.


Method Summary
static Iterator getChildElementsByTagName(Element element, String tagName)
           
static String getNodeTypeAsString(Node node)
           
static String getPCDATA(Element elmt)
           
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.
static String getPCDATAByTagName(Element elmt, String tagName)
           
static String getPCDATAByTagName(Element elmt, String tagName, boolean normalize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.