What is XML?
XML stands for Extensible Markup Language, it looks like HTML and is designed to describe the data. XML uses document type definition (DTD) or an XML schema to describe the data. In XML tags are not predefined and user has to define his/her own tags.
XML was developed by the SGML Editorial Board formed under the auspices of the World Wide Web Consortium (W3C) beginning in 1996. The design goals for XML are:
Today XML is a W3C Recommendation. This means that XML has been reviewed and approved by the members of the W3C. XML is therefore deemed "stable" and ready for widespread deployment. A Recommendation is the highest level a W3C document can be assigned. XML became a Recommendation on February 10, 1998.
Main Difference between XML and HTML:
|
XML |
HTML |
|
XML was designed to describe data and to focus what data is.
|
HTML was designed to display data and to focus on how data looks |
|
XML was designed to carry data |
HTML was deigned to display data. |
|
XML tags are not predefined |
HTML tags are predefined |
|
|
|
The following link shows and example of an XML document.
http://www.geocities.com/sia_irfan/DatabaseApplicationForManagers/Student.xml
References: http://www.idealliance.org, http://www.w3schools.com