Create an XML document template to describe the result of student in an examination. The description should include the student's roll number, name, three subject names and marks, total marks, percentage, and result.
CODING:
<?xml version="1.0" encoding="UTF-8"?>
<StudentResult>
<student>
<rollno>
101
</rollno>
<name>
Tony
</name>
<subject>
<sub1>Science
<marks>94</marks>
</sub1>
<sub2>Maths
<marks>98</marks>
</sub2>
<sub3>Research
<marks>100</marks>
</sub3>
</subject>
<total>292</total>
<percentage>97%</percentage>
<result>PASS</result>
</student>
<student>
<rollno>
102
</rollno>
<name>
Pepper
</name>
<subject>
<sub1>Science
<marks>95</marks>
</sub1>
<sub2>Maths
<marks>80</marks>
</sub2>
<sub3>Research
<marks>81</marks>
</sub3>
</subject>
<total>256</total>
<percentage>85%</percentage>
<result>PASS</result>
</student>
<student>
<rollno>
103
</rollno>
<name>
Rhodey
</name>
<subject>
<sub1>Science
<marks>80</marks>
</sub1>
<sub2>Maths
<marks>80</marks>
</sub2>
<sub3>Research
<marks>54</marks>
</sub3>
</subject>
<total>214</total>
<percentage>71%</percentage>
<result>PASS</result>
</student>
</StudentResult>
CODING:
<?xml version="1.0" encoding="UTF-8"?>
<StudentResult>
<student>
<rollno>
101
</rollno>
<name>
Tony
</name>
<subject>
<sub1>Science
<marks>94</marks>
</sub1>
<sub2>Maths
<marks>98</marks>
</sub2>
<sub3>Research
<marks>100</marks>
</sub3>
</subject>
<total>292</total>
<percentage>97%</percentage>
<result>PASS</result>
</student>
<student>
<rollno>
102
</rollno>
<name>
Pepper
</name>
<subject>
<sub1>Science
<marks>95</marks>
</sub1>
<sub2>Maths
<marks>80</marks>
</sub2>
<sub3>Research
<marks>81</marks>
</sub3>
</subject>
<total>256</total>
<percentage>85%</percentage>
<result>PASS</result>
</student>
<student>
<rollno>
103
</rollno>
<name>
Rhodey
</name>
<subject>
<sub1>Science
<marks>80</marks>
</sub1>
<sub2>Maths
<marks>80</marks>
</sub2>
<sub3>Research
<marks>54</marks>
</sub3>
</subject>
<total>214</total>
<percentage>71%</percentage>
<result>PASS</result>
</student>
</StudentResult>
Comments
Post a Comment