Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XML's style >Thread Next - Re: XML's style Re: XML's styleTo: NULL Date: 7/4/2006 5:10:00 PM Joe Kesselman <keshlam-nospam@c...> writes: >This is a FAQ. See past discussion. In general, use attributes when you >want to help refine the description of something, child elements when >you want to give the information it contains -- BUT remember that >attribute values are unstructured, and if at any point you're going to >want to have structured data it's going to have to be an element. Also >remember that attributes only allow a single instance per element; if >there will ever be more than one, that too pushes you toward elements. Unfortunately, this overwrites - or partly contradicts - the first rule of thumb. Therefore, the situation is somewhat confusing. (For this reason, I have developed the notation »Unotal« with a Java-implementation [released under the GPL], which allows structured and repeated attributes.) | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
