what is features of XML. How is it different from HTML?
Answers
Answer. XML stant for extensive markup language.
XML is case sensitive.
HTML is not case sensitive.
Apart from being an open source tool, and an easy to read format, XML has found wide usage, due to the following reasons.
• Most XML documents are written in plain text, makes it easier for developers, you can write it using a plain text editor or an IDE.
• Data identification is easier in XML documents, making it usable for all kinds of applications, so a search program can get the data, while an address book application can read only the address data.
• XML can be used to represent small amount of data as well as larger data sets making it more scalable.
• You can be using your customized stylesheet to display the XML data, or even using the standard XSL or XSLT.
• Documents can be added inline in an XML document,making it easier to interlink multiple documents.
• The tight definition of tags in XML makes it easier to process and parse, also the fact that every tag must be closed. So less chance of encountering a single tag like in HTML.
• Hierarchical structure of the elements makes it easier for you to drill down to the actual information. For eg, if you are seeking the location of a specific department of an organization, you could just go down to the department element, and the location element in it.
HTML was designed to display data with focus on how data looks. XML was designed to be a software and hardware independent tool used to transport and store data, with focus on what data is. XML provides a framework for defining markup languages.
Apart from being an open source tool, and an easy to read format, XML has found wide usage, due to the following reasons.
• Most XML documents are written in plain text, makes it easier for developers, you can write it using a plain text editor or an IDE.
• Data identification is easier in XML documents, making it usable for all kinds of applications, so a search program can get the data, while an address book application can read only the address data.
• XML can be used to represent small amount of data as well as larger data sets making it more scalable.
• You can be using your customized stylesheet to display the XML data, or even using the standard XSL or XSLT.
• Documents can be added inline in an XML document,making it easier to interlink multiple documents.
• The tight definition of tags in XML makes it easier to process and parse, also the fact that every tag must be closed. So less chance of encountering a single tag like in HTML.
• Hierarchical structure of the elements makes it easier for you to drill down to the actual information. For eg, if you are seeking the location of a specific department of an organization, you could just go down to the department element, and the location element in it.
HTML was designed to display data with focus on how data looks. XML was designed to be a software and hardware independent tool used to transport and store data, with focus on what data is. XML provides a framework for defining markup languages.
Thanks for asking