Here are the two ways for data structures i can think of with XML :
1)
<root>
<color value1="red" value2="green" ></color>
</root>
2)
<root>
<color>
<value1> red </value1>
<value2> green </value2>
</color>
</root>
Which one is better ? Why ?
Thank you.
http://www.w3schools.com/xml/xml_attributes.asp
That will clear up everything for you