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
Constructors Constructor and Description XMLUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.lang.Object
get(java.util.Hashtable tree, java.lang.String path)
Returns nested object based upon xml variable path demarcated by ".".static java.lang.Object
processNode(org.w3c.dom.Node elem)
Create a model entry to represent the various attributes of a 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 DOM node.
-
-
-
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 ".". eg: path = 'store.name' returns the name string from the store hashtable- Parameters:
tree
- the xml hashtable representation.path
- the path to retrieve the object.- 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 DOM node.PLEASE NOTE: DOM node attributes and its children are all considered attributes of the DOM node in the model entry.
- Parameters:
elem
- The DOM node to be modelled.- Returns:
- object returns from
processNode(elem, "")
-
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 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.
-
-