XML provides a method to describe structured data. Unlike HTML tags that are important for controlling the display and appearance of data, XML tags are used to define the structure and data type of the data. XML application tags to portray data elements
XML provides a method to describe structured data. Unlike HTML tags that are important for controlling the display and appearance of data, XML tags are used to define the structure and data type of the data.
XML applications use a group of tags to portray data elements. Each element encapsulates data that may be very simple or complex. You can define an unlimited set of XML tags. For example, you can define XML tags to declare order data, such as price, tax, shipping address, Bill address, and so on. Because XML tags are used in all units and across units, data from different data storage areas can be easily exchanged and controlled.
XML is a simple, platform-independent and widely used scale. XML is superior to HTML in that it separates user interfaces from structured data. This data and display respectively make 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 to XML.
XML and HTML
The following are the key points to remember about the relationship between XML and HTML:
A. XML does not need to be changed to HTML. XML can be regarded as a supplement to HTML. The goals of XML are different from those of HTML: HTML is designed to display data and focus on data appearance, while XML is designed to describe data and concentrate on data content.
B. like HTML, XML is not controlled. Although the XML tag can be used to describe the structure of an item such as an order, it does not contain any code that can be used to send or process the order and ensure delivery by the order. Others must write code to perform these operations on the XML Schema data.
C. Unlike HTML, XML markup is defined by the author of the architecture or document and is unrestricted. HTML tags are predefined. HTML authors can only apply tags supported by the current HTML scale.
XML application
XML is a very mobile method for transferring data. The following are examples of XML applications:
A. common document
B. structured records, such as appointment records or orders
C. Internet/Intranet Web exploitation program for mobile data
D. persistence pattern of objects with data, such as objects or ActiveX controls
E. data records, such as the query result set
F .. metadata of the Web site, such as "Channel Definition pattern" (CDF)
G .. graphical display, such as using the user interface of the program
H .. link between information and people on the Web
I. C # code (XML can be used). For more information, see the XML documentation.
J. used to locate the available XML Web services invention documentation. For more information, see XML Web services invention.
The following lists the advantages of XML over other formats when storing information:
A. The XML format is text-based, which makes them easier to read, easier to record, and sometimes easier to debug.
B. XML documents can apply a lot of infrastructure that has been built for HTML, including HTTP protocol and some browsers. HTTP promises to transfer XML data through the firewall.
C. XML analysis has been well defined and widely used, making it possible to retrieve information from XML documents in various environments.
D. The program can be attached to the XML analyzer for some structure verification and data type check (when the application architecture is used ).
E. XML is based on Unicode, making it easier to create international documents. However, XML is not suitable for all situations. XML documents are often more specific than the binary pattern they are exchanged. They occupy more network bandwidth and storage space, or require more processor time for compression. XML analysis may be slower than the highly optimized binary structure of analysis and may require more memory. However, careful exploitation of programming can avoid titles.
Verify the XML document
To verify that the XML document contains the required data and structure, you must link an XML architecture with the XML document. XML architecture defines how to structure elements and attributes to form XML document rules. You can share the architecture between units to simplify the transmission and processing of shared data. For more information, see XML architecture prefix.
Show XML data
There are several ways to display (or supply) XML data.
There is also a data binding mechanism that can be applied with the style sheet to display XML data in a visual form and add interactivity.
The following are several ways to display XML:
A. XSLT-extensible style sheet language
B. CSS-Cascading Style Sheets
C. Microsoft Internet Explorer
For more information, see the MSDN Online XML development staff Center Web site (http://msdn.microsoft.com/xml/default.asp ).
XML resources
If you are familiar with HTML, you can learn how to create XML documents and only request them to be valid and conform to the scale pattern. For more information about XML, see xml sdk and MSDN Online XML development staff Center Web site
Http://msdn.microsoft.com/xml/default.asp ).
For more information, see the XML specification (http://www.w3.org/XML/) of the World Wide Web Federation (W3C ).
Q: Why are there many large websites still using html instead of xml?
A: XML and HTML are essentially different. if you say that HTML is used for large websites, it is certainly the fastest to use HTML for static data, but the protection is poor! Generally, xml css is used for site design. However, xml css has many limitations. use xml xslt.
Q: Can I directly use xml to develop a website and then directly upload it to the normal static space provided now?
A: assume that you have applied (or at least installed) IE6 without any title.
If the user applies other browsers, XML-> HTML conversion should be performed on the server side, which is not supported by normal static space. You can select an ASP or PHP space that supports XMLDOM. Therefore, the running environment is different.