public static String mapToXMLString(Map envMap){
  StringBuilder xmlSB=new StringBuilder(1000);
  Set keySet=envMap.keySet();
  Iterator keyIter=keySet.iterator();
  while (keyIter.hasNext()) {
    String name=(String)keyIter.next();
    Set values=(Set)envMap.get(name);
    xmlSB.append(attributeValuePairToXMLString(name,values));
  }
  return xmlSB.toString();
}

public static String mapToXMLString ( Map envMap ) { StringBuilder xmlSB = new StringBuilder ( 1000 ) ; Set keySet = envMap . keySet ( ) ; Iterator keyIter = keySet . iterator ( ) ; while ( keyIter . hasNext ( ) ) { String name = ( String ) keyIter . next ( ) ; Set values = ( Set ) envMap . get ( name ) ; xmlSB . append ( attributeValuePairToXMLString ( name , values ) ) ; } return xmlSB . toString ( ) ; }
converts a map to its xml string representation .
