How to write the DTD of a XML-document?
Answers
Answered by
1
Here is a short note on DTD:
(1) It stands for Document Type Definition.
Syntax:
<! ELEMENT element-name(element-content).
Ex:
<! DOCTYPE Brainly [
<! ELEMENT Brainly(ranks, Users)>
<!ELEMENT ranks (#PCDATA) >
<!ELEMENT Users(#PCDATA) >
]>
<Brainly>
<ranks>Brainly Guru</ranks>
<users> KVN MURTHY</users>
</Brainly>
There are two types of DTD:
(1) Internal DTD
(2) External DTD
Hope this helps!
(1) It stands for Document Type Definition.
Syntax:
<! ELEMENT element-name(element-content).
Ex:
<! DOCTYPE Brainly [
<! ELEMENT Brainly(ranks, Users)>
<!ELEMENT ranks (#PCDATA) >
<!ELEMENT Users(#PCDATA) >
]>
<Brainly>
<ranks>Brainly Guru</ranks>
<users> KVN MURTHY</users>
</Brainly>
There are two types of DTD:
(1) Internal DTD
(2) External DTD
Hope this helps!
Similar questions
Science,
7 months ago
History,
7 months ago
Social Sciences,
7 months ago
Biology,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago