I building a page for a client that will read in content from an XML file. One section of the page has several informational "modules" each with a title and content, which will be stored in the XML file. The client will be able to add/remove as many modules as he wants (within reason). The order of the modules is important to the client, but the information doesn't have any inherent index like a timestamp.
It's not a huge deal, but I'm wondering what you guys would think is the most intuitive or elegant way for storing this kind of data. I'm currently using method #3, but I'm wondering what could be considered the more "proper" way in regards to semantics, structure, separation of style/content, etc.
Method 1 has an "index" element which indicates its order.
Method 2 has the index as part of the element name.
Method 3 just relies on the order of appearance in the markup to provide the order these modules.
It's not a huge deal, but I'm wondering what you guys would think is the most intuitive or elegant way for storing this kind of data. I'm currently using method #3, but I'm wondering what could be considered the more "proper" way in regards to semantics, structure, separation of style/content, etc.
Method 1 has an "index" element which indicates its order.
Method 2 has the index as part of the element name.
Method 3 just relies on the order of appearance in the markup to provide the order these modules.