正在加载图片...
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
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有