I have already conducted 2: I would have a lot of people waiting to see my good play, huh, huh, the basic knowledge of XML, we have roughly understand, please allow me to change it again before conducting more advanced courses. Course arrangements, so that you can "see" go down (there are too many boring courses in China. Many times I see the dizzy flower want to vomit, but their language is very refined, very learning ^ _ ^, unlike me, Luo Si Luo, so I temporarily decided to insert a dish, that is, the magic revelation --- CSS application in XML ... Not covered, your XML data content can be seen directly (Not a directory tree, it is really displayed).
In advance, the normal method for displaying XML data is to use XSL and other techniques (next lecture - the application of the Royal Warlock - ×SL in XML), here is just a use of existing technology to display XML data Method (you have to admit that CSS is widely existing in China).
Here is a common XML code:
code:
XML Version = "1.0" encoding = "GB2312"?>
Next is a common CSS code (how can I do it in HTML webpage production? I will not explain this)
code:
MyWrong {Background-Color: #ffffff; width: 100%;} Reason {font-family: "Song"; font-size: 22pt; display: block; margin-bottom: 10pt; margin-left: 20; FONT-FAMILY: "Song"; font-size: 9pt; color: red;} think {font-family: "Song"; font-size: 9pt; display: block; margin-bottom: 10pt; color: green;} Request {Font-Family: "Song"; font-size: 9pt; display: block; color: yellow; margin-left: 20pt;}
In the next time, it is the code that mixed CSS to XML, just add a line to reference the CSS file.
E.G:
code:
XML Version = "1.0" encoding = "GB2312"?> ★★★ Xml-stylesheet type = "text / css" href = "mywrong.txt"?>