iterateMap(document, document.getDocumentElement(), tm, 0);
return document;
}
private static void iterateMap(Document document, Node parentNode, Map<?, ?> tm, int d)
{
<BUG>doDebug(d,"> IterateMap parentNode= "+ nodeToString(parentNode));
</BUG>
d++;
Iterator<?> iter = tm.keySet().iterator();
while( iter.hasNext() ) {

iterateMap(document, document.getDocumentElement(), tm, 0);
return document;
}
private static void iterateMap(Document document, Node parentNode, Map<?, ?> tm, int d)
{
if ( DF ) doDebug(d,"> IterateMap parentNode= "+ nodeToString(parentNode));
d++;
Iterator<?> iter = tm.keySet().iterator();
while( iter.hasNext() ) {
