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
English,
8 months ago
Sociology,
8 months ago
Biology,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago