XML Documents

tutorial and example
tutorial and example

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

In above programing example, first line is XML deceleration, it defines XML versions 1.0. Next line shows the root element (office) of the document. Inside that there is one more element (employee). Employee element contains five branches named <firstname>, <lastname>, <contact>, <email>, <address>.

<address> branch contains three sub-branches <city>, <state>, <pin>.

Document Prolog Section

It is the top of the document, before root element.