About XML DTD and its various components
DTD is a building block of an XML document. It defines a list of legal documents
for the document structure. A DTD can be specified either externally or internally
in a document.
are used to markup elements. These are used for formatting codes. This indicates
how a document will appear when displayed.
These are the main building blocks of XML documents. Elements can contain text or they can be empty
In the above example the terms <to>, <from>, <body> are the elements.
They are variables to define common text.
few of the predefined entities in XML are as follows:
<Img src="computer.gif" />
In the above example the Img provides more information about the image by specifying source of the image using the attribute src.
means Character Data. It is a text that will not be parsed by the parser. The
text inside these tags is not treated as markups and the entities will not be
PcData denotes Parsed Character Data. PcData is the text parsed by the parser. The text inside these tags is treated as markups and the entities will be expanded.
Top XML News