I'm looking to load a SortedList via xml and the content pipeline, but I'm getting an error that I can't seem to resolve. With "Controls" being my sorted list, here's what my XML looks like:
<Controls>
<Capacity>4</Capacity>
<Item>
<Value Type="Menu.Label">
<Name>ExitGame</Name>
<Position>55 105</Position>
<Color>FFFFFFFF</Color>
<FontName>Fonts/Kootenay20</FontName>
<Text>Exit Game</Text>
</Value>
</Item>
</Controls>
Which gives me the error:
Error 1 There was an error while deserializing intermediate XML. Value cannot be null.
Parameter name: key C:\Programming\DCF\MenuContent\Content\Windows\MainMenu\Layout.xml 14 11 MenuContent
I've tried adding key as an element and/or an attribute of Item and Value, but to no avail. I get the same error every time. Interestingly, the a test output from the IntermediateSerializer gives:
<Controls>
<Capacity>4</Capacity>
<Item>
<Value>
<Name></Name>
<Position>0 0</Position>
</Value>
</Item>
</Controls>
Which also has no mention of the key... any help would be great appreciated. Thanks!