XML Attributes vs Elements [duplicate]
This question already has an answer here: XML attribute vs XML element 20 answers When should you use XML attributes and when should you use XML elements? e.g. <customData> <records> <record name="foo" description="bar" /> </records> </customData> or <customData> <records> <record> <name>foo</name> <description>bar</description> </record> </records> </customData> Ryan Taylor There is an article titled " Principles of XML design: When to use elements versus attributes " on IBM's website. Though there doesn't appear to be many hard and fast rules, there are some good guidelines mentioned in the