-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuestion5.xml
More file actions
33 lines (33 loc) · 1.06 KB
/
Copy pathQuestion5.xml
File metadata and controls
33 lines (33 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE students [
<!ELEMENT students (student+)>
<!ELEMENT student (rollno, name, address, DOB, email, phone)>
<!ELEMENT rollno (#PCDATA)>
<!ELEMENT name (firstName, middleName?, lastName)>
<!ELEMENT firstName (#PCDATA)>
<!ELEMENT middleName (#PCDATA)>
<!ELEMENT lastName (#PCDATA)>
<!ELEMENT address (permanent, temporary?)>
<!ELEMENT permanent (#PCDATA)>
<!ELEMENT temporary (#PCDATA)>
<!ELEMENT DOB (#PCDATA)>
<!ATTLIST DOB type (AD | BS) #REQUIRED>
<!ELEMENT email (#PCDATA)>
<!ELEMENT phone (#PCDATA)>
<!ATTLIST phone type CDATA #IMPLIED>
]>
<students>
<student>
<rollno>12345</rollno>
<name>
<firstName>John</firstName>
<lastName>Doe</lastName>
</name>
<address>
<permanent>Kathmandu, Nepal</permanent>
</address>
<DOB type="BS">2057-02-15</DOB>
<email>john.doe@example.com</email>
<phone>9812345678</phone>
</student>
</students>