
• XML & Related Technologies
Solution 1 (b): This solution offers another way to describe the
XML message for examination results. It does not break down the
hierarchy to the lowest possible level. That is, the information
about subjects and the marks therein are at the same level, which
is not a great approach.
<?xml version=”1.0”>
<exam_result>
<roll_number> … </roll_number>
<student_name> … </student_name>
<subject_1_name> … </subject_1_name>
<subject_1_marks> … </subject_1_marks>
<subject_2_name> … </subject_2_name>
<subject_2_marks> … </subject_2_marks>
<subject_3_name> … </subject_3_name>
<subject_3_marks> … </subject_3_marks> ...