Use the @ElementList annotation like so
@Root(name="keys")
public class KeyList {
@ElementList(inline=true, entry="key")
private List<Key> keys;
public List<Key> getKeys() {
return keys;
}
}
Then
Persister persister = new Persister();
List<Key> keys = persister.read(KeyList.class, source).getKeys();