Tim Gould Wrote:OK. Since I'm not expanding the keywords list out (which would require sub-tags) I'll use attributes.
Why not separate? Isn't the whole point of this xml file so 3rd party software doesn't need to parse/disect stuff?
My 2cts:
Code:
<Part>
<Keywords>
<Item>Classic space</Item>
<Item>Space police</Item>
</Keywords>
<History>
<Item date="yyymmdd" author="piet">Some kind of historic rant.</Item>
<Item date="yyymmdd" author="sjaak">Another historic rant.</Item>
</History>
</Part>
As for elm vs attr discussion, I think the core rule is: An attribute needs to say something about an element's data.