XML Tutorial Introduction:
What Is XML?
XML stands for Extended Markup Language and was created in 1998 by W3C (The world wide Web Consortium). XML is similar to HTML but is different in so many ways.
XML was designed to store data where HTML was designed to display and format data. In html we have a set of predifined tags like
<H1 ></H1> but in XML you define your own tags.
XML Syntax?
Ok so now that we know what XML is lets have a look at the syntax used in XML.
Having prior experience in HTML is advantage and would make this process of creating XML easier as both languages are quiet similar.
All XML documents start with a XML declaraition, the declaration defines the version of xml that you are using and the encoding used.
<?xml version="1.0"? encoding="ISO-8859-1"?>
The rest of your xml document falls within the root elements, similar to tags, the root element is the parent of all other elements who are consider children.
In our example our root elements will be
<mail></mail >
as you can see in XML as in HTML Each element is marked with an opening tag and a close tag.