XML (Extensible Markup Language) is comparatively one of the easiest languages to code. Like HTML, all titles must appear within tags such as:
A major difference in xml is that, you can write whatever you want within these tags, unlike in html where there was a specific dictionary of words that could be written.
In xml, every document should be started with the following tags:
This informs the computer that an xml document is being written. After these tags, you can go on and create more tags such as the first example I provided. Inside these sub tags, you can write whatever you want. XML is not a developer's language like html so, the coding that you write will mean absolutely nothing. Xml can be sort of thought of as a text database. Below is an example of a complete xml document:
- example1.mp3
- example2.mp3
- example3.mp3
Even when writing XML documents, there are certain rules that must be followed.
All Elements Created Must have an Ending Element
- Beginning Element
- Ending Element
An element will not be complete until it's ending tag has been written. It is therefore very important to remember to end all your opening tags.
Tag Letters are Case-Sensitive
The above is not an element because the ending tag and opening tag do not start with the same case.
The above is a complete element because the ending and opening tags are both starting with the same case.