Create an XML file stored as first. xml
<? XML version = "1.0" encoding = "gb2312" standalone = "yes"?>
<Pageview>
Welcome to XML
</Pageview>
The simple concept is described here. Although many books have mentioned it, here is a simple description.
The first sentence is to process the command with <? Start, and start with?> End.
XML Declaration has three features: version, encoding, and standalone. Standalone indicates whether the XML background supports DTD files.
Create a sample table file and store it as first.css
Pageview {font-size: 24pt; font-weight: bold; color: red ;}
Now, how can I connect first.xmlwith the first.css file? That is to say, how can I display my data in the "welcome to use XML" format in a browser?
Still processing command! The Processing Command is <? XML-stylesheet?> And its two features: type and href. The Type attribute specifies the style language used, while the href attribute specifies a URL that can locate the style sheet (which may be relative ). Add a row after the first line in first. xml,
<? XML-stylesheet type = "text/CSS" href = "first.css"?>
In this way, you can view first. XML to see what you want!
It's just a memo!