ElementMap annotation cannot read value element when key is an attribute
Brought to you by:
niallg
ElementMap annotation allows these two XML formats :
@ElementMap(name = "Fields", entry = "Field", key = "Name", attribute = true, value = "Value")
<Fields>
<Field Name="name" Value="valeur"/>
</Fields>
@ElementMap(name = "Fields", entry = "Field", key = "Name", value = "Value")
<Fields>
<Field>
<Name>name</Name>
<Value>valeur</Value>
</Field>
</Fields>
But it is not possible to read this format (key attribute AND value element) :
<Fields>
<Field Name="name">
<Value>valeur</Value>
</Field>
</Fields>