Fixed EntryKeyListEncoder encoding.

This commit is contained in:
ETj 2011-06-22 18:48:26 +02:00
parent 434b9ec61c
commit 34335ae681

View File

@ -61,9 +61,10 @@ public class EntryKeyListEncoder {
if( ! metadata.isEmpty() ) { if( ! metadata.isEmpty() ) {
Element md = new Element(listName); Element md = new Element(listName);
for (Map.Entry<String, String> entry : metadata.entrySet()) { for (Map.Entry<String, String> entry : metadata.entrySet()) {
md.addContent("entry") Element entryeElem = new Element("entry")
.setAttribute("key", entry.getKey()) .setAttribute("key", entry.getKey())
.setText(entry.getValue()); .setText(entry.getValue());
md.addContent(entryeElem);
} }
e.addContent(md); e.addContent(md);
} }