Computer Science, asked by lunakrystal, 1 year ago

How to write the DTD of a XML-document?

Answers

Answered by siddhartharao77
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!
Similar questions