XMLvs XHTML
XML是可扩展标记语言。这是维efined in the XML 1.0 specification, which is developed by the W3C (World Wide Web Consortium). XML provides a standard way, which is also simple, to encode data and text such that the content could be exchanged across driver hardware, operating systems and applications with little human intervention. XHTML (derived from eXtensible HyperText Markup Language) could be seen as combination of XML and HTML (HyperText Markup Language). XHTML is made up of the elements in HTML version 4.01, combined with the strict syntax of XML.
XML
XMLis a markup language that is used to transfer data and text between driver hardware, operating systems and applications with little human intervention. XML provides tags, attributes and element structures that can be used to provide context information. This context information can be used to decode the meaning of the content. This makes it possible to develop efficient search engines and perform data mining on the data. Furthermore, traditional relational databases are suitable as XML data because they could be organized in rows and columns but XML provides less support for data with rich content such as audio, video, complex documents, etc. XML databases store data in a structured, hierarchical form which allows queries to be processed more efficiently. XML tags are not predefined and the users can define new tags and document structures. Also, new internet languages such as RSS, Atom, SOAP, and XHTM were created using XML.
XHTML
XHTMLcan be seen as a cleaner version of HTML, which is also stricter than HTML. XHTML is also a W3C recommendation (recommended in January, 2000) and it is a combination of HTML and XML. In XHTML, everything needs to be marked up correctly unlike in HTML. This would make sure that well formatted documents will be produced. This is very important today, since different browser technologies are widely used. This includes browsers that run on mobile devices such as phones and these browsers do not have the necessary capabilities to interpret pages with ill formatted markup languages. Therefore, XHTML that combines the strengths of XML (designed for describing data) and HTML (designed for displaying data) provides a strictly formatted markup language that avoids the above mentioned problem. All browsers support XHTML and it is compatible with HTML 4.01.
What is the difference between XML and XHTML?
XHTML是一种通过组合XML和HTML设计的标记语言。XML提供了XHMTL的可扩展性,同时要求XHTML文档的格式很好,与HTML不同。XML是一种标记语言,旨在在驱动器硬件,操作系统和不同应用程序之间传输数据,但XHTML将XML的优势与HTML结合在一起,并为创建网页提供了更清洁,更严格的标记语言。XHTML可以看作是网页的未来。但是,XML可以用于多种应用程序中,例如在不同平台和不限于与Web浏览器通信的不同平台和操作系统之间通信的Web应用程序。
Leave a Reply