Compare XML and HTML

Source: Internet
Author: User
Tags xml example xsl

-------------------------------- Vocabulary ----------------------------

XML eXtensible Markup Language, eXtensible Markup Language

XSL extensible format language, extensible Style Language

Xll scalable link language, extensible linking Language

CSS stacked page, Cascading Style Sheets

DHTML Dynamic HTML

SGML standard General Markup Language, Standard Generalized Markup Language

---------------------------------- HTML question ----------------------------

HTML (with its extended functions such as tables, frames, and scripts) is too simple:

1. If the URL address is changed, manually change the link and the maintenance workload is high.

2. Too many parts need to be downloaded for dynamic content. In addition, the data search engine stored in Java cannot be accessed.

3. The page does not have a structure similar to the database, which is not good for search.

4. insufficient support for double-byte text. For example, Chinese pages are incorrectly formatted on different platforms.

5. poor scalability. Scientists cannot use HTML to write mathematical formulas, chemical equations, and molecular crystal structures.

Exploration:

XML facilitates the expression and structure of information, making data search more effective.

CSS solves webpage inheritance and display

DHTML is mainly used for dynamic display of web pages.

---------------------------------- Comparison Between XML and HTML ----------------------------

1. xml and HTML are both from SGML

2. xml retains the scalability of SGML, while HTML cannot be extended, that is

2. xml Allows defining (unlimited) tags, allowing nested information structures, while HTML is a fixed tag.

3. XML provides a general method for directly "processing" Web data, while HTML is only a general method for "Displaying" Web data.

3. xml focuses on the "content" of the web page, while HTML focuses on the "display format" of the page (haha, text format)

3. xml enables machines to talk (automatically process information). html facilitates communication between people (only the initial stage of the network ).

Warm Attention note: Just like the advantages of the document/view structure

SGML already exists and uses tags to describe documents. Includes Document Type Definitions (DTD). The DTD defines the meaning of tags, so the syntax of SGML can be expanded.

HTML only uses a small part of the SGML tag. For example, HTML 3.2 defines 70 tags. The HTML Tag is fixed, that is, the HTML syntax is not extensible and does not need to contain a DTD.

The direct use of SGML as a Web language is too huge. The Internet Consortium (W3C) recommends that you use a simplified SGML version-XML.

SGML may never be widely accepted on the Internet. For high-end publishing applications, SGML will continue to be applied.

HTML is still the easiest way to quickly publish data on the web, most of which are short-term data, such as meeting agenda or advertising brochures.

If the data will be used for a long time and more structures are required, the Web Builder will be willing to use XML.

---------------------------------- XML example ----------------------------

March 25,199 8 Seattle WA West Coast USA ......
From the weather forecast example, we can see that the XML page information is structured (such as the data structure), so it is more accessible and the retrieval results are more targeted and accurate.

Each added tag must be recorded in an independent DTD file. When the customer browses, the related DTD files are downloaded to the client together.

Of course, DTD files are not required for standards (such as Chemical Markup Language (CRF) and Mathematical Markup Language (MML.

The URL address can be defined in the DTD file (URL alias, haha ). When changes occur, you only need to modify the DTD file to facilitate maintenance.

Wen yan Note: a new layer is added, which brings flexibility! <HTML-> XML <as <view-> document/view <〗.

---------------------------------- XSL & Xll ----------------------------

In addition to DTD, XML also includes XSL and Xll

XSL is used to translate XML data into HTML or other formats.

XSL can interpret a limited number of tags, which make web pages more colorful, such as dynamic text and horse-running text. In addition, XSL also processes multi-country text, dual-byte Chinese character display, and various grid processing methods.

Xll is the link language of XML, which is similar to HTML, but more powerful.

Xll supports scalable and multi-direction connections. It breaks the simple link restrictions in HTML that only supports the hypertext concept, and supports domain names, bidirectional links, loops, and collection links of multiple sources independent of addresses. Xll links can be specified and managed according to user requirements without document restrictions.

---------------------------------- XML opportunity ----------------------------

Adobe framemaker can be used to write XML documents.

Microsoft's IE 5.0 already supports XML.

Microsoft makes a commitment to support XML in the next version of Office software, such as MS Word and Excel.

Netscape and Sun also said they wanted to support XML in their web tools.

XML is easy to use and has a flexible standard format;

XML provides an effective means for web applications to describe and exchange data.

XML facilitates the expression and structure of information, making data search more effective;

XML can use URL aliases to facilitate web maintenance and make Web applications more stable;

XML can use digital signatures to extend web applications to the security and confidentiality fields.

In the future, Web writing tools must be XML. Users must consider using XML to write web pages from now on.

---------------------------------- XML application ----------------------------

XML/EDI electronic data exchange

EDI (Electronic Data Interchange) is used to replace paper-based operations with electronic technology for document exchange between companies. XML rich format languages can be used to describe different types of documents, such as letters of credit, loan application forms, insurance policies, claims, and various invoices. Data sent from structured XML documents to the web can be encrypted and can be easily appended with digital signatures. XML security and confidentiality measures can fully show its charm in EDI applications. XML is expected to promote large-scale EDI applications.

Chemical Markup Language (NML) and Mathematical Markup Language (Math ml)

The chamical Markup Language and math ml (Mathematical Markup Language) are Markup languages used by XML to describe chemistry and mathematical formulas. It can describe the molecular and crystal structures and the spectral structures of compounds. Math ml is the gospel of mathematicians. For the first time since the advent of the Web, mathematicians have been able to use math ml to precisely display mathematical formulas on browsers.

Open Software description format OSD

Similar to the fate of EDI, the online release of software packages has been in the pilot phase. OSD (Open Software descriptipon) is a set of XML tags used to describe various software products. It can describe the software specifications, instructions for use, and a runable platform.

Channel Definition Format CDF

Channel Definition Format (CDF) is an XML data format used by Microsoft in the IE 4.0 browser. It is used to describe the content and desktop components of the active channel and indicate channel information and updates. CDF makes interoperability between different platforms possible, allowing Web publishers to control the push technology. Dedicated push technology will no longer affect the interoperability of different push technologies, so that the same web content can be obtained from incompatible platforms.

Open financial exchange ofx

Ofx (open financial exchange) is also a markup set of XML, used to describe the business exchanges between accounting firms and customers. Ofx allows customers to directly exchange financial data with accounting firms, including e-banking and payment agreements.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.