com.ibm.commerce.xml.utils
Class XMLUtil

java.lang.Object
  |
  +--com.ibm.commerce.xml.utils.XMLUtil

public abstract class XMLUtil
extends java.lang.Object

XML Utility class


Constructor Summary
XMLUtil()
           
 
Method Summary
static java.lang.Object get(java.util.Hashtable tree, java.lang.String path)
          Returns nested object based upon xml variable path demarcated by ".".
For Example: path = 'store.name'
returns the name string from the store hashtable
static java.lang.Object processNode(org.w3c.dom.Node elem)
          Create a model entry to represent the various attributes of a Document Object Model (DOM) node.
static java.lang.Object processNode(org.w3c.dom.Node node, java.lang.String tabs)
          Create a model entry to represent the various attributes of a Document Object Model (DOM) node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtil

public XMLUtil()
Method Detail

get

public static java.lang.Object get(java.util.Hashtable tree,
                                   java.lang.String path)
Returns nested object based upon xml variable path demarcated by ".".
For Example: path = 'store.name'
returns the name string from the store hashtable
Parameters:
tree - The hashtable from which you wish to get a value.
path - The nested object based upon XML variable path demarcated by ".".
For Example: path = 'store.name'
Returns:
Returns the specified String from the specified hashtable.

processNode

public static java.lang.Object processNode(org.w3c.dom.Node elem)
Create a model entry to represent the various attributes of a Document Object Model (DOM) node.

PLEASE NOTE: DOM node attributes and its children are all considered attributes of the DOM node in the model entry.

Parameters:
node - The DOM node to be modelled.
Returns:
Calls the processNode(elem, "") method.

processNode

public static final java.lang.Object processNode(org.w3c.dom.Node node,
                                                 java.lang.String tabs)
Create a model entry to represent the various attributes of a Document Object Model (DOM) node.

PLEASE NOTE: DOM node attributes and its children are all considered attributes of the DOM node in the model entry.

Parameters:
node - The DOM node to be modelled.
tabs - Indentation used for debug log format purposes.
Returns:
The value of the node.