XML got its name Extensible Markup Language from the characteristic that it is not restricted to a fixed set of tags, as is HTML (Hypertext Markup Language). An XML
user creates his own tags according to need. A tag is a sequence of characters in a markup language used to provide information, such as formatting specifications, about a document. Markup languages are roughly classified into three types: * Stylistic - defines character presentation; for example bold, italics, underline, font etc. * Structural – defines the structure of the document, such as heading and paragraphs. * Semantic – informs us about the content of the data, like specifying a title. Its History:
SGML (Standardized Generalized Markup Language) is the mother of all markup languages and has been in existence since the late 1960s. In 1986 it became an international standard for defining the markup languages. It was used to create other languages, including HTML, which is very popular for its use on the web. HTML was made by Tim Berners Lee in 1991. While on one hand SGML is very effective but complex, on the other, HTML is very easy, but limited to a fixed set of tags. This situation raised the need for a language that was as effective as SGML and at the same time as simple as HTML. This gap has now been filled by XML. The development of XML started in 1996, when a team led by Jon Bosak of Sun Microsystems began work on a project for remolding and cutting the inessential parts of SGML. They took the best of SGML, guided by the experience with HTML, and produced something that was powerful, but much simpler to use. The World Wide Web Consortium
also contributes to the creation and development of the standard for XML. The specifications for XML were laid down in just 26 pages, compared to the 500+ page specification that define SGML. It's Usage Although, XML looks like HTML, there is a world of a difference. While HTML specifies what each tag and attribute means and how the text defined by it will look in a browser, XML uses the tag only to delimit pieces of data, and leaves the interpretation of the data completely to the application that reads it.
For example, if we see “<b>” in an XML file, it may or may not mean bold (as in HTML) -- it may mean ’book’, ‘bank’ or anything else specified by the programmer. HTML is only a presentation technology -- it carries no description of the content held within its tags -- whereas in XML a programmer can describe the text in its own tag. Moreover we can specify the importance of a tag in XML so that a hierarchy of data can be represented, which is not possible in HTML. Like HTML, both Netscape and Microsoft browsers support XML. As XML files are text files, it becomes easier for a programmer to debug applications. | |