Hi everyone,I am planning a project that will interpret and synthesize output from a mark-up language similar in syntax XHTML.W3Schools XML tutorial ( http://www.w3schools.com/xml/xml_attributes.asp See 'My Favourite Way') says that I should refrain from using Attributes to hold data, yet isn't this the way XHTML does it? For example (from W3Schools, note the DATE below).
<note date="12/11/2002"><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>
<note><date>12/11/2002</date><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>
<note><date> <day>12</day> <month>11</month> <year>2002</year></date><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>
See the three ways of doing the same thing? I understand that the third and most expanded form is more easily expanded, more structured etc. BUT, if I am going to be using Attributes to hold small amounts of information (ie. properties [height, width, depth, x, y, z, colour, tooltip, events, effects, src, etc]) and then the auctual data between the tags like this:
<tag property1="x" property2="x" property3="x">DATA</tag>
Is that an 'acceptable' way of doing it?Hope I did not get confusing there. Any info is appreciated, and thankyou in advance.