5. Meta data --- Professional XML applications apply meta data to work. In HTML, we know that meta identifiers can be used to define the keywords and descriptions of webpages. these identifiers are not displayed on webpages, but can be searched by search engines. meta data --- Professional XML applications apply meta data to work.
In HTML, we know that meta identifiers can be used to define key words and descriptions of webpages. these identifiers are not displayed on webpages, but can be searched by search engines, and affects the order of search results.
XML deepens and expands this principle. with XML, you can describe where your information is. you can use meta to verify information, perform searches, and force display, or process other data.
The following describes the usage of XML metadata in actual use:
1. the digital signature can be verified to make the online business submission action (submission) valid.
2. you can easily create indexes and perform more effective searches.
3. data can be transmitted between different languages.
The W3C organization is studying a metadata processing method named "Resource Description Framework", which can actively exchange information. W3C claims that the use of RDF with digital signatures, it will make the network have 'true' e-commerce.
6. display
Using XMl alone cannot display pages. we apply pattern-based techniques, such as CSS or XSL, to display the documents created by the XML tag.
In the first chapter, we will talk about the separation of data and pattern in XML. The XML document itself does not know how to display it. it must have a help file to help implement it. (XML removes all identifiers, including style definitions such as font, color, and p. Therefore, XML uses CSS methods similar to DHTML to define style styles .), The following file types are used to set the display style in XML:
1. XSL
XSL stands for Extensible Stylesheet Language, which is an important file type for designing XML document display styles in the future. It is also based on the XML language. With XSL, you can flexibly set document display styles, which will automatically adapt to any browsers and PDAs (handheld computers ).
XSL can also convert XML into HTML, so that the old browser can also browse XML documents.
2. CSS
CSS is familiar to everyone. Cascading Style Sheet is an important method to display XML documents in a browser.
3. Behaviors
Behaviors has not yet become a scale. It is a unique function of Microsoft's IE browser. it can be used to set some interesting actions for XML tags.
VII. DOM
The full name of DOM is document object model. what is DOM used? Suppose you think of your document as a separate object. DOM is how to use HTML or XML to hold and hold this object.
Object-oriented ideas and methods have become very popular. in programming languages (such as java and js), object-oriented programming ideas are applied. In XML, we need to control and control web pages as an object. we can create our own objects and templates. To exchange with objects, APIs are required for how to command objects. The full name of API is Application Programming Inte *** ce, which is the rule for visiting and controlling objects. DOM is an API that describes the object rules of HTML/XML documents. It specifies the naming protocols, program models, and communication rules for HTML/XML document objects. In XML documents, we can think of every identifier element as an object-it has its own name and attributes.
XML creates identifiers, and DOM is used to tell scripts how to hold and display these identifiers in a browser window.
We have briefly described some basic principles of XML above. let's take a look at the associations between them and how they work. here is a figure:
1. XML describes the data type. For example, 'King lear 'is a title element;
2. CSS stores and controls the display style of elements. For example, the title will be displayed in 18pt font.
3. how the script controls the actions of elements. For example, when a title element 'out of stocks' is displayed in red.
4. DOM provides a public platform for the exchange of scripts and objects, and displays the results in the browser window.
If any part produces an error, it will not produce accurate results.
Now, we have a general idea about how XML works. Through this chapter, we may feel that XML seems to be more inclined to data processing, making it easier for programmers to learn. The actual situation is the same. the purpose of the XML design is to facilitate data sharing and interaction. In the next chapter, we will systematically understand various terms about XML. You are welcome to continue browsing.
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