public static void printWeightedSetXml(WeightedSet ws, XmlStream xml) {
        Iterator<FieldValue> it = ws.fieldValueIterator();
        while (it.hasNext()) {
            FieldValue val = it.next();
            xml.beginTag("item");
            xml.addAttribute("weight", ws.get(val));
            val.printXml(xml);
            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