What is XML?
Standing for eXtensible Markup Language, XML is a set of rules to construct, collect, and pass information.
Difference Between XML & HTML
While XML was created to transfer and stock data, HTML was designed to show data. Also, unlike HTML, XML tags are not predetermined and allow users to assign their own tags and their document format.
1. XML is processed easily by computers and the information coded is simple to comprehend and read.
2. Tags are not set and can be created when needed.
3. XML documents support any type of data (i.e. video, image).
4. XML is not focused on presentation but on what the document means.
5. XML is an international standard.
6. XML is a very cross platform mark up language used in websites, web applications, software development, etc.
A Few XML Rules
XML elements start with an open tag <> and a close tag </>. A XML element contains the information in the document.
XML requires a closing tag on each element, as displayed in the above example.
XML tags have to be written with the similar case. In the above example, the first line is wrong because the opening tag <Paragraph> is written in upper case while the closing tag </paragraph> is written in lower case.
In the example above, the line one is incorrect because <b> opened on the inside and closed on the outside. If <b> opens on the inside it should also close on the inside (demonstrated on line 2).
XML attributes provide more information about the tag element and must be in quotes.