Compare XML and HTML

zhaozj2021-02-16  44

----------------------------------vocabulary--------------- -------------

XML Scalable Markup Language, Extensible Markup Language

XSL Scalable Format Language, Extensible Style Language

XLL Extended Link language, EXTENSIBLE LINKING LANGUAGE

CSS stacking page, cascading style sheets

DHTML dynamic HTML

SGML standard universal markup language, Standard generalized Markup Language

---------------------------------- HTML problem ------------- ---------------

HTML (coupled with its expansion form, frame, scripting and other functions) too simple:

1.url address change, manual change link, maintenance workload is large.

2. Dynamic content requires too much parts. And Java saved data search engines cannot be accessed.

3. The page is not similar to the structure of the database, which is unfavorable to the search.

4. Support for double-byte text is not enough. For example, the Chinese page is not in different platform formats.

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

explore:

XML facilitates the expression and structured organization of information, making data search more effective

CSS solves inheritance and display of web pages

DHTML is mainly used for web page dynamic display issues

---------------------------------- XML ​​and HTML ----------- -----------------

1.xml from SGML with HTML

2.XML retains the scalable features of SGML, and HTML is not expandable, ie

2.XML allows definition (quantity) tag, allows nested information structure, and HTML is a fixed tag

3.XML provides a general method of direct "processing" web data, and HTML is only a general method of web "display" data.

3.XML focused on "content" of the web page, and HTML focuses on page "display format" (huh, text formatting)

3.XML makes the machine to talk (can process information automatically), HTML is convenient for people to communicate with people (just the primary phase of the network).

Wen Yu Note: Just as the benefits of the Document / View structure

SGML has already existed, with markers to describe documentation, universal language. Contains Document Type Definition (DTD), defined in the DTD, and the syntax of the SGML is scalable.

HTML only uses a small part of the SGML, such as HTML 3.2 defines 70 markers. The HTML tag is fixed, that is, the HTML syntax is not expandable without including DTD.

Use SGML directly as a web language too large, and Internet Joint Organizational (W3C) is recommended to use a streamlined SGML version --XML.

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

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

If the data will be used for a long time, and more structures are needed, the web builder will be willing to use XML.

---------------------------------- XML ​​------------- ---------------

March 25, 1998 08:00 Seattle WA West Coast USA ... From the weather forecast, it is seen that the XML page information is structured (like data structure 哟), and thus more accessibility, its search results are more targeted ,more acurrate. Each added tag must be recorded in a separate DTD file. When the customer browses, the related DTD file downloads to the client together.

Of course, it has been developed (e.g., chemical tag language CML, mathematical markup language MML) does not require DTD files.

You can define the URL address in the DTD file (URL alias, huh, huh). When changing, simply change the DTD file and more convenient.

Wen Yu Note: It also increases a layer, which brings flexibility! 〖HTML-> XML〗 Just as 〖view-> document / view.

---------------------------------- XSL & XLL ------------- ---------------

In addition to DTD, XML also includes XSL and XLL

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

XSL can explain the number of unlimited tags that make the web's layout more colorful, such as dynamic text, hockey text. In addition, XSL also handles multi-country text, double-byte Chinese characters, and various processing of grids.

XLL is a link language of XML, similar to HTML link, but more powerful.

XLL supports scalable links and multi-directional links. It breaks HTML only supports the simplest link restriction under the super text concept, which supports a domain name, two-way link, loop, multiple source collection links, etc. The XLL link is not subject to documentation, fully specified and managed by user requirements.

---------------------------------- XML ​​chance -------------- ----------------

Adobe's Framemaker can be used to write an XML document.

The IE 5.0 launched by Microsoft has supported XML.

Microsoft has made commitments to support XML in the next version of Office software such as MS Word, Excel.

Netscape, Sun also means to support XML in their web tool.

XML uses simple and flexible standard format;

XML provides a valid means for describing and exchange data for web applications.

XML facilitates the expression and structured organization of information, making data search more efficient;

XML can use the URL alias to make the Web's maintenance and make the web application more stable;

XML can use digital signatures to expand web applications to a security confidential area.

Future web writing tools must be XML, users must consider writing a web page from now on using XML.

---------------------------------- XML ​​application -------------- ----------------

XML / EDI electronic data exchange

EDI (Electronic Data Interchange) is a paper-based operating means with electronic technology for document exchange between companies. XML's rich format language can be used to describe different types of documents, such as credit, loan application form, insurance policy, claiming order, and various invoices. Structured XML documentation to the web data can be encrypted, and it is easy to attach a digital signature. XML security measures can fully display its charm in EDI, XML has a large-scale application that wants to drive EDI.

Chemical Markup Language CML and Mathematical Markup Language Math ML

CML (Chamical Markup Language) and Mathematical Markup Language are markers in XML applications to describe chemical and mathematical formulas. CML can describe molecules and crystal structures, spectral structures, and the like. Math ML is the gospel of mathematicians. Since the WEB came out, mathematicians can use Math ML to accurately display the mathematical formula for the first time on the browser. Open Software Description Format OSD

In addition to the fate of EDI, the Internet issuance of the package has been in the trial phase. OSD (Open Software Descript) is a set of XMLs to describe the marking sets of various software products, which can specify the software specifications, instructions, and run platforms.

Channel definition format CDF

Channel definition format CDF (Channel Definition Format) is the XML data format used by Microsoft in the IE 4.0 browser, used to describe the contents of the movable channel and desktop components, indicating the information of the channel and its update. The CDF makes interoperability of different platforms, making the web publisher to control the PUSH technology. Dedicated push technology will no longer affect the interoperability of different technology, so that the same web content can be obtained from mutually incompatible platforms.

Open financial exchange OFX

Ofx (Open Financial Exchange) is also a tag set of XML for describing business between accounting firm and customers. With OFX, customer and accounting offices can exchange financial data directly, including documents such as e-banking and payment agreements.

转载请注明原文地址:https://www.9cbs.com/read-20651.html

New Post(0)