I have the following XML:
...
<Game minPoints="5">
<GameElement>
<Text>Ball Text</Text>
</GameElement>
<GameElement>
<Text>Cicle Text</Text>
</GameElement>
</Game>
...
And the following class structure:
public class ... {
[XmlArray("Game")]
[XmlArrayItem("GameElement")]
public GameList gameElements = new GameList();
}
public class GameList : List<GameElement> {
[XmlAttribute]
public string minPoints;
}
public class GameElement
{
public string Text;
}
When I deserialize the XML, gameElements.minPoints always remains null.
Ideas anyone how to solve this?
Thank you in advance!