Sunday, March 2, 2014

Differences between XML and HTML

XML HTML

eXtensible Markup Language
Hyper Text Markup Language
Markup language defines a set of rules for encoding documents that can be read by both humans and machines. Designed with focus on storing and transporting data.
Markup language for displaying web pages in a web browser. Designed to display data with focus on how the data looks
It is used to Transport data between the application and the database and to develop other mark up languages.
It is used to display a web page
User defined tags
Predefined tags
Tags are case sensitive
Tags are not case sensitive
XML is dynamic type
HTML is of static type
Infine set of tags
Limited no of tags
Every start tag must have end tag
Every start tag need not have end tag
XML focuses on what data is
HTML focuses on how data looks
XML attribute must be enclosed within Quotation marks.
Attribute value can be presented without Quotation marks
Cannot be used as a subtype of a sql_variant instance. Does not support casting or converting to either text or ntext. Does not support the following column and table constraints. XML provides its own encoding. Collations apply to string types only. Cannot be compared or sorted. Cannot be used in Distributed Partitioned Views. Not well supported by browsers
Data does not know itself very well. Data cannot change in response to environment. Data cannot be easily maintained. Cannot store or call on variables. Lacks the capability to define new structures by defining relationships between classes. Tags are not useful for exchanging the document between applications.

No comments:

Post a Comment