Suppose I have a number of elements to store like:
fruitList = "apple", "orange", "banana", "kiwi", ...
How would you store these in XML?
<FruitList>"apple", "orange", "banana", "kiwi"</FruitList>
OR
<Fruits Type="Expensive" List="apple", "orange", "banana", "kiwi"> </Fruits>
Is there a better way?
Whatever method is chosen, how can I parse the list easily so that the parsing doesn't need to change if the formatting of the items is changed to something like:
<FruitList>
"apple",
"orange",
"banana",
"kiwi"
</FruitList>