Package org.apache.xml.utils
Class Hashtree2Node
- java.lang.Object
-
- org.apache.xml.utils.Hashtree2Node
-
public abstract class Hashtree2Node extends java.lang.Object
Simple static utility to convert Hashtable to a Node.- Version:
- $Id: Hashtree2Node.java 475902 2006-11-16 20:03:16Z minchau $
- Author:
- shane_curcuru@us.ibm.com
- See Also:
EnvironmentCheck
,Extensions
-
-
Constructor Summary
Constructors Constructor Description Hashtree2Node()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
appendHashToNode(java.util.Hashtable hash, java.lang.String name, org.w3c.dom.Node container, org.w3c.dom.Document factory)
Convert a Hashtable into a Node tree.
-
-
-
Method Detail
-
appendHashToNode
public static void appendHashToNode(java.util.Hashtable hash, java.lang.String name, org.w3c.dom.Node container, org.w3c.dom.Document factory)
Convert a Hashtable into a Node tree.The hash may have either Hashtables as values (in which case we recurse) or other values, in which case we print them as <item> elements, with a 'key' attribute with the value of the key, and the element contents as the value.
If args are null we simply return without doing anything. If we encounter an error, we will attempt to add an 'ERROR' Element with exception info; if that doesn't work we simply return without doing anything else byt printStackTrace().
- Parameters:
hash
- to get info from (may have sub-hashtables)name
- to use as parent element for appended node futurework could have namespace and prefix as wellcontainer
- Node to append our report tofactory
- Document providing createElement, etc. services
-
-