Page 289 - Data Science class 11
P. 289
<subject>Maths</subject>
<gender>Male</gender>
</student>
<student>
<name>Daryl Dixon </name>
<age>33</age>
<subject>Science</subject>
<gender>Male</gender>
</student>
<student>
<name>Maggie</name>
<age>36</age>
<subject>Arts</subject>
<gender>Female</gender>
</student>
Ans. Table according to the XML code is:
name age subject gender
Rick Grimes 35 Maths Male
Daryl Dixon 33 Science Male
Maggie 36 Arts Female
9. Write an XML document that marks up the following data:
All these must be rendered. Use attribute to make the data more informative.
EmpID Name City
E001 Raj Singh Delhi
E002 Pankaj Mumbai
E003 Rahul Sharma Delhi
E004 Priya Rao Noida
Ans. XML document for the above table:
<?xml version = “1.0” encoding=”UTF-8” standalone = “yes”?>
<employees>
<employ>
<EmpId>E001</EmpId>
Practical Questions 287

