PGDEL/DECP03/Unit3/13

 Unit 3.3 Web application development tools &amp; Technologies  XML Document Structure XML document form a tree structure, and self describing and simple syntax.

&lt;?xml version="1.0" encoding="UTF-8"?&gt;    &lt;contact-detail&gt;         &lt;name&gt; Aakash Rathore &lt;/name&gt;         &lt;company&gt; ABC Ltd. &lt;/company&gt;         &lt;phone&gt; 234567 &lt;/phone&gt;     &lt;/contact-detail&gt;

The first line is the XML declaration defines the XML version (1.0) and the encoding used UTF-8 (Unicode). The document contains two types of information:           1. Markup, like &lt;contact-detail&gt; and &lt;name&gt; etc. 2. Character data, like “Aakash Rathore” and “234567” XML document must contain root element. The root element is parent to all other elements. In the above example &lt;contact-detail&gt; tag is root tag. XML tags must have the start and end of elements; tags are the logical units of information in an XML document.

 XML Comments : 

Syntax of XML comments is &lt;!- - Comment - -&gt;