public static <K extends FieldValue, V extends FieldValue> void printMapXml(MapFieldValue<K, V> map, XmlStream xml) {
        for (Map.Entry<K, V> e : map.entrySet()) {
            FieldValue key = e.getKey();
            FieldValue val = e.getValue();
            xml.beginTag("item");
            xml.beginTag("key");
            key.printXml(xml);
            xml.endTag();
            xml.beginTag("value");
            val.printXml(xml);
            xml.endTag();
            xml.endTag();
        }
    }
Date: Apr 17, 2008

@author <a href="mailto:humbe@yahoo-inc.com">H&aring;kon Humberset</a>
document/src/main/java/com/yahoo/document/serialization/XmlSerializationHelper.java