org.apache.shindig.common.xml
Class DomUtil

java.lang.Object
  extended by org.apache.shindig.common.xml.DomUtil

public final class DomUtil
extends Object

Utility functions for navigating DOM


Method Summary
static List<Element> getElementsByTagNameCaseInsensitive(Document doc, Set<String> lowerCaseNames)
           
static Node getFirstNamedChildNode(Node root, String nodeName)
           
static Node getLastNamedChildNode(Node root, String nodeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFirstNamedChildNode

public static Node getFirstNamedChildNode(Node root,
                                          String nodeName)
Returns:
first child node matching the specified name

getLastNamedChildNode

public static Node getLastNamedChildNode(Node root,
                                         String nodeName)
Returns:
last child node matching the specified name.

getElementsByTagNameCaseInsensitive

public static List<Element> getElementsByTagNameCaseInsensitive(Document doc,
                                                                Set<String> lowerCaseNames)


Copyright © 2007-2012. All Rights Reserved.