An introduction to XML essence learning (as long as you come in sure you can learn)

Source: Internet
Author: User
xml| Essence

1. Preface
Most of the resources are transferred from www.xml.org.cn
Statement first, lest someone say I hotlinking

2. Gold Equipment
XML Explorer Simplified Chinese version (free) XML.ORG.CN download
(recommend this, easy to use, more than the ice and fire sword and cattle x)
Introduced
XML Explorer is an XML and schema editor. It is easy to use and can show multiple windows. You can manipulate any XML data from a tree chart, a list, a table, a text mode, and a pop-up edit area.

* Its copy and paste feature allows the user to copy any XML text onto the system ClipBook and paste it into any XML Explorer window.
* It supports bidirectional XPath, so just point to any XML node or attribute, and a standard XPath comes out.
* Its two columns of text display way to facilitate comparison and editing.
* Its schema fully supports tree graphs, lists, collection viewing modes, and text patterns.
* With it, you can easily convert Microsoft Excel, Access, and any ODBC data into XML format.
* The new version contains the XML data analysis feature in the table schema.

Special: Thank David Ren (mergesoft.com) for free to provide the official version and registration code for this site.

Note: This version and the registration code are limited to use in mainland China.
Registration code: 1096DFDE-1962-43A0-0000-005DXBDIPKSD

English version: Http://download.xml.org.cn/XMLExplorer.msi
Chinese version: Http://download.xml.org.cn/XMLExplorerCN.msi
Chinese version of the Patch: Http://download.xml.org.cn/xmlexplorer268cn.rar

Other Tools Downloads:
bbs.xml.org.cn/dispbbs.asp?boardid=35&id=6191
Other Resources downloads:
Bbs.xml.org.cn/resource.asp

Below will be the introduction of the author's "Little Shoes" tutorial, some of which are slightly modified

3, define the mark
<?xml version=\ "1.0\"?>
<book>
<title>XML</title>
<author>lisongtao</author>
</book>
If the document contains Chinese, you must add the encoding
<?xml version=\ "1.0\" encoding=\ "gb2312\"?>
About coding, see "Nonsense XML" related to the Devil Tutorial ...

4. Use CSS style
<?xml version=\ "1.0\"?>
<?xml-stylesheet type=\ "text/css\" href=\ "1.css\"?>
<lisongtao>
Hello the world!
</lisongtao>
---------------------------------------------
1.CSS
----------------------------------------
Lisongtao {display:block; font-size:48pt; font-weight:bold;}

5, with the XSL definition
What's called XSL, you can look at something like CSS, but it's stronger than CSS. XML syntax See other tutorials, no nonsense here.

1.XML
--------------------------------------------
<?xml version=\ "1.0\"?>
<?xml-stylesheet type=\ "text/xsl\" href=\ "2.xsl\"?>
<lisongtao>
Hello the world!
</lisongtao>
---------------------------------------------
2.xsl
----------------------------------------
<?xml version=\ "1.0\" encoding=\ "gb2312\"?>
<xsl:stylesheet xmlns:xsl=\ "Http://www.w3.org/tr/wd-xsl\" >
<xsl:template match=\ "/\" >


<title>hello the World</title>

<body bgcolor=\ "#CCCCFF \" >
&LT;H1 align=\ "Center\" ><xsl:value-of select=\ "lisongtao\"/>
</body>

</xsl:template>
</xsl:stylesheet>

6, Notes
Nothing much to say, like JS.
<?xml version=\ "1.0\" encoding=\ "gb2312\"?>
<!--
Here are some information about the book
-->
<books>
<book>
<name>xml Application </name>
<author>list1</author>
<price>55.00</price>
</book>
</books>

7, the properties of the node
<?xml version=\ "1.0\"?>
<books title=\ "List\" >
<book>
<name>xml and Asp</name>
<price>45.00</price>
<publisher>tsinghua </publisher>
</book>
</books>

8. Special Mark
When,< > \ "\" & special tags in XML, they should be expressed in < > \ "L ' &"
<?xml version=\ "1.0\"?>
<books height=\ "6 ' 5 '" >
<book width=\ "6\" 5\ "\" >
<name>list &lisongtao</name>
<author>lisongtao < list@263.net></author>
</book>
</books>

9. Chinese mark
Sweat.... Another narcissistic xltxlm of sex.
Although XML supports Chinese tags, it is not recommended.
<?xml version=\ "1.0\" encoding=\ "gb2312\"?>
< good people >
<name> Small Shoes </name>
</Good >

10. DTD Data format
You can consider the DTD as a rule for the moment, which ensures that the XML defines the data format according to these rules.

1.DTD
=====================
<?xml version=\ "1.0\"?>
<! ELEMENT Book (price,name) >
<! ELEMENT name (#PCDATA) >
<! ELEMENT Price (#PCDATA) >
Check the data: If the same node contains more than one byte point, how should be defined?
=====================
Dtd. Xml
==================
<?xml version=\ "1.0\"?>
<! DOCTYPE book SYSTEM \ "1.dtd\" >
<book>
<name>lisongtao</name>
<price>11.2</price>
</book>

[1] [2] [3] [4] [5] [6] Next page



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.