XML stands for EXtensible Markup Language. XML was designed for describing data.XML stands for EXtensible Markup Language. XML is a software - and hardware-independent tool to carry information.it is a format of textual data with strong support via unicode for different human language.
Even though the design of XML focuses on documents, it is widely used for the representation of arbitrary data structures such as those used in web services. XML is a markup language much like HTML.XML is designed to be self-descriptive. XML is a W3C Recommendation.on February 10, 1998 , XML became a W3C Recommendation .
Difference Between XML and HTML:
Html was designed to display data.But xml was designed for describe data.HTML is about displaying information, while XML is about carrying information. Maybe XML is a little hard to understand, but XML does not DO anything. It is just an information wrapped in tags.
How we can use xml?
XML is used in many facets of web development, usually to simplify data storage and sharing.XML different Data from HTML, If they need to display dynamic data in their HTML document, it will contain a lot of work to edit the HTML each time the data changes. Usually XML data is stored in plain text format. In the world, computer systems and databases take data in incompatible formats.This provides a software- and hardware-independent way of storing data. A lot of internet languages are written in xml. such as XHTML,XML Schema,RSS,SVG and WSDL .
Syntax rules of xml
Syntax rules of xml are very logical and very easy to use. All XML Elements Must Have a Closing Tag. In html some elements do not have to have closing tag , but in xml it is illegal to omit the closing tag. All elements must have a closing tag.
Xml tags are case sensitive. The tag is different from the tag .Opening and closing tag must be written in same case.
In xml comments are written in thisformat like html comments:
XML saves New Line as LF
Windows applications saves a new line as: carriage return and line feed (CR+LF).
Unix and Mac OSX uses LF.
Old Mac systems uses CR.
XML stores a new line as LF.