public static final void writeMapXml(Map val,XmlSerializer out,WriteMapCallback callback) throws XmlPullParserException, java.io.IOException {
  if (val == null) {
    return;
  }
  Set s=val.entrySet();
  Iterator i=s.iterator();
  while (i.hasNext()) {
    Map.Entry e=(Map.Entry)i.next();
    writeValueXml(e.getValue(),(String)e.getKey(),out,callback);
  }
}

public static final void writeMapXml ( Map val , XmlSerializer out , WriteMapCallback callback ) throws XmlPullParserException , java . io . IOException { if ( val == null ) { return ; } Set s = val . entrySet ( ) ; Iterator i = s . iterator ( ) ; while ( i . hasNext ( ) ) { Map . Entry e = ( Map . Entry ) i . next ( ) ; writeValueXml ( e . getValue ( ) , ( String ) e . getKey ( ) , out , callback ) ; } }
flatten a map into an xmlserializer . the map can later be read back with readthismapxml ( ) . this method presumes that the start tag and name attribute have already been written and does not write an end tag .
