XML – Prolog

XML Prolog is the component added in the beginning of an XML document. Otherwise, we can say that whatever it appears before the document’s root element can be considered as Prolog. XML Prolog includes XML declaration, DOCTYPE and comments, processing instructions too.


DOCTYPE is used to mention the Document type Definition and it is used for validation purpose.We could call it as a valid XML if it get validated through DTD. DTD will consists the structure of an XML document. DTD defines the elements to be used in the XML document.