Q: What is the difference between XML and HTML? _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
Tags xslt
Q: What is the difference between xml and html? Where are their differences? A: For the differences between XML and HTML, see www. w3c. orgMarkUpwww. w3c. orgXML & ldquo; Extensible Markup Language & rdquo; (XML) provides a method to describe structured data. HTML tags used to control the display and appearance of data Q: What is the difference between xml and html? Where are their differences?
A: About XMLFor differences with HTML, see:
Http://www.w3c.org/MarkUp/
Http://www.w3c.org/ XML/
"Extensible Markup Language "( XML) Provides a method to describe structured data. Unlike HTML tags that are mainly used to control the display and appearance of data, XMLTags are used to define the structure and data type of the data.
   XMLUse a group of tags to depict data elements. Each element may encapsulate very simple or complex data. You can define a group of unrestricted XMLMark. For example, you can define XMLMark to declare the data in the order, such as price, tax, shipping address, bill address, etc. Because XMLBecause tags are used across the entire unit and across units, data from different data storage areas is easier to exchange and operate.
   XMLIt is a simple, platform-independent and widely used standard. XMLCompared with HTML, HTML separates user interfaces from structured data. This separation of data and display makes it possible to integrate data from different sources. Customer Information, orders, research results, bill payments, medical records, directory data, and other information can all be converted XML.
   XMLAnd HTML
The following are some important things to remember: XMLKey points of the relationship with HTML:
A .. XMLNot to replace HTML; actually XMLIt can be regarded as a supplement to HTML. XMLUnlike HTML, HTML is designed to display data and concentrate on the Data appearance. XMLThe design goal is to describe the data and concentrate on the data content.
B. Similar to HTML, XMLNo operation is performed. Although XMLA tag can be used to describe the structure of an item such as an order, but it does not contain any code that can be used to send or process the order and to ensure delivery by that order. Others must write code XMLFormat data to perform these operations.
C. Unlike HTML, XMLTags are defined by the authors of the architecture or document and are unrestricted. HTML tags are predefined. HTML authors can only use tags supported by the current HTML standard.
   XMLUse
   XMLIt is an extremely flexible way to transmit data. All of the following are available XMLExample:
A. Common Document
B. Structured records, such as appointment records or orders
C. Internet/Intranet Web applications for Mobile Data
D. Objects with data, such as objects or ActiveX controls in persistent format
E. Data records, such as the query result set
F .. metadata of the Web site, such as "Channel Definition Format" (CDF)
G .. graphic display, such as the Application User Interface
H .. link between information and people on the Web
I. C # code (available XMLFor more information, see XMLDocument
J. Used to locate available XMLFor more information, see XMLWeb services Discovery.
When storage information is listed below XMLAdvantages over other formats:
A .. XMLThe format is text-based, which makes it easier to read and record, and sometimes easier to debug.
B .. XMLThe document can use many infrastructures that have been created for HTML, including HTTP protocol and Some browsers. HTTP allows transmission through the firewall XML.
C .. XMLAnalysis has been well-defined and widely used, enabling XMLDocument Retrieval Information becomes possible.
D. Application dependency XMLAnalyzer performs some structure verification and Data Type checks (when using the architecture ).
E .. XMLUnicode makes it easier to create international documents. However, XMLNot suitable for all situations. XMLDocuments are often more detailed than the binary format they are replaced. They occupy more network bandwidth and storage space, or require more processor time for compression. XMLAnalysis may be slower than analysis of highly optimized binary formats, and more memory may be required. However, a well-designed application can
Avoid some problems.
   VerifyXMLDocument
To verify XMLThe document contains the required data and structure. XMLArchitecture and XMLDocument Association. XMLArchitecture defines how to construct elements and attributes to form XMLDocument rules. You can share the architecture between units to make it easy to transmit and process shared data. For more information, see XMLArchitecture introduction.
   DisplayXMLData
There are several ways to display (or provide) XMLData.
The data binding mechanism can also be used with the style sheet for visualized display. XMLData and adding interactivity.
The following shows XMLMethods:
A. XSLT-extensible style sheet language
B. CSS-Cascading Style Sheets
C. Microsoft Internet Explorer
For more information, see MSDN Online XMLDeveloper Center Web Site
Http://msdn.microsoft.com/xml/default.asp ).
   XMLResources
If you are familiar with HTML, you can learn how to create XMLDocumentation. Only valid and compliant with the standard format is required. Related
   XMLFor more information, see XMLSDK and MSDN Online XMLDeveloper Center Web Site
Http://msdn.microsoft.com/xml/default.asp ).
For more information, see XMLSpecifications
(Http://www.w3.org/ XML/).

Q: Why are there many large websites still using html instead of xml?

A: XMLIt is essentially different from HTML. You say that large websites use HTML. If static data uses HTML, the speed is certainly the fastest, but the maintenance is poor!
Generally used XMLCSS for site design, XMLCSS is quite limited. XMLXSLT

Q: Can I directly use xml to develop a website and then directly upload it to the normal static space provided now?

A: If you can assume that all users are using (or at least installed) IE6, there is no problem.
If you use other browsers XML-> HTML conversion is not supported in normal static space. Optional XMLDom asp or PHP space. Therefore, the running environment is different.

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.