<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE info [
<!ELEMENT info (subject+,student+,faculty+)>
<!ELEMENT subject (name)>
<!ATTLIST subject id ID #REQUIRED>
<!ATTLIST subject sub CDATA #REQUIRED>
<!ELEMENT student (name,contact)>
<!ATTLIST student subid IDREFS #IMPLIED>
<!ATTLIST student gender (Male|Female) "Male">
<!ELEMENT name (#PCDATA)>
<!ELEMENT contact (#PCDATA)>
<!ATTLIST contact phone NMTOKEN #REQUIRED>
<!ELEMENT faculty (name)>
<!ATTLIST faculty subid IDREF #REQUIRED>
<!ENTITY prof "Professor">
]>
<info>
<!-- Subject List -->
<subject id="CC-108" sub="ACP">
<name>Advance C Programming</name>
</subject>
<subject id="CC-109" sub="DHTML and XML">
<name>Dynamic HTML and XML</name>
</subject>
<!-- Student List -->
<student subid="CC-108 CC-109" gender="Male">
<name>ABC</name>
<contact phone="91-1234567890"></contact>
</student>
<student subid="CC-109 CC-109" gender="Female">
<name>XYZ</name>
<contact phone="91-9876543210"></contact>
</student>
<!-- Faculty List -->
<faculty subid="CC-108">
<name>&prof; M. Khan</name>
</faculty>
<faculty subid="CC-109">
<name>&prof; R. Shah</name>
</faculty>
</info>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.