vooga.levelEditor.xml
Class XMLTools

java.lang.Object
  extended by vooga.levelEditor.xml.XMLTools

public class XMLTools
extends java.lang.Object

Provides implementations of several functions commonly used in XML and DOM programming.

Author:
Phil Puryear

Constructor Summary
XMLTools()
           
 
Method Summary
static java.util.List<org.w3c.dom.Element> getChildElements(org.w3c.dom.Element parent)
          Returns a list containing all of the direct child elements of the given parent.
static java.util.List<org.w3c.dom.Element> getChildElements(org.w3c.dom.Node parent, java.lang.String elementTag)
          Returns a list containing all of the direct child elements of the given parent.
static org.w3c.dom.Node getChildNode(org.w3c.dom.Node parent, java.lang.String name)
          Returns a list containing all of the direct child elements of the given parent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLTools

public XMLTools()
Method Detail

getChildElements

public static java.util.List<org.w3c.dom.Element> getChildElements(org.w3c.dom.Element parent)
Returns a list containing all of the direct child elements of the given parent.


getChildElements

public static java.util.List<org.w3c.dom.Element> getChildElements(org.w3c.dom.Node parent,
                                                                   java.lang.String elementTag)
Returns a list containing all of the direct child elements of the given parent.


getChildNode

public static org.w3c.dom.Node getChildNode(org.w3c.dom.Node parent,
                                            java.lang.String name)
Returns a list containing all of the direct child elements of the given parent.