Attributes vs.Subelements Distinction between subelement and attribute In the context of documents,attributes are part of markup,while subelement contents are part of the basic document contents In the context of data representation,the difference is unclear and may be confusing Same information can be represented in two ways -<course course id=“CS-101”>..</course> <course> <course_id>CS-101</course id>... </course> Suggestion:use attributes for identifiers of elements,and use subelements for contents Database System Concepts-6th Edition 23.13 @Silberschatz,Korth and SudarshanDatabase System Concepts - 6 23.13 ©Silberschatz, Korth and Sudarshan th Edition Attributes vs. Subelements Distinction between subelement and attribute In the context of documents, attributes are part of markup, while subelement contents are part of the basic document contents In the context of data representation, the difference is unclear and may be confusing Same information can be represented in two ways – <course course_id= “CS-101”> … </course> – <course> <course_id>CS-101</course_id> … </course> Suggestion: use attributes for identifiers of elements, and use subelements for contents