DTD Stands for Document Type Declaration. The purpose of a DTD is to define the structure of an XML document.It defines the structure with a list of legal elements.
<! DOCTYPE note
[ <!ELEMENT note(to, from,heading,body)>
<!ELEMENT note to(#PC DATA)>
<!ELEMENT note from (#PC DATA)>
<!ELEMENT note heading(#PC DATA)>
<!ELEMENT note body(#PC DATA)>]>
<! DOCTYPE note
[ <!ELEMENT note(to, from,heading,body)>
<!ELEMENT note to(#PC DATA)>
<!ELEMENT note from (#PC DATA)>
<!ELEMENT note heading(#PC DATA)>
<!ELEMENT note body(#PC DATA)>]>
No comments:
Post a Comment