XML Documents

XML document is nothing but document which contains elements, attributes and values. Basically its document which contains information with proper XML structured.

XML document considered as portable database so it contain different types of data like Texts, Digits, Special Symbols, Calculations etc...

There are mainly two parts in document.

Prelog

Document Elements

Prelog:

Prelog section you need to define on top of the page, before you start your elements. It contains two main components.

XML Declaration and Document Type Declaration

Example:
<?xml version="1.0" encoding="UTF-8"?>

Document Elements:

Document elements are important part of XML. They are considered ass building block or XML document which contains actual information for XML document. Elements also contain sub elements based on your need to store information in XML documents.

Elements defined actual name or column name for information which it holds. You may learn more about Document Elements in other Chapter