XML Documents
It is a basic unit of XML information composed of elements and other markup in an orderly package. It contains wide variety of data. A tree structure is make to describe an XML document.
Example of an XML document
<?xml version="1.0"?>
<office>
<employee>
<firstname>Ajay</firstname>
<lastname>Singh</lastname>
<contact>9453754048</contact>
<email>[email protected]</email>
<address>
<city>Allahabad</city>
<state>U.P</state>
<pin>211001</pin>
</address>
</employee>
</office>