Importan XML file can be divided into the following sections: document declarations, elements, attributes, comments, CDATA areas, special characters, processing instructions(processing instruction) and so on. Let's look at a simple XML description:
xml| syntax
Tools for creating XML filesAn XML file, like an HTML file, is actually a text file. It is clear that you will soon understand that the most common tool for creating XML files is "Notepad", just like HTML. In addition to Notepad, there
xml| syntax Now let's use Notepad to create our XML file. First look at an XML file:
Example 1
〈?xml version= "1.0" encoding= "gb2312"?ResourcesBooksName 〉xml Introductory Refinement 〈/nameAuthor John 〈/authorPrice currency unit = "RMB"
xml| syntax
Tools for creating XML filesAn XML file, like an HTML file, is actually a text file. It is clear that you will soon understand that the most common tool for creating XML files is the same as HTML,It's "notepad." In addition to
Now let's use Notepad to create our XML file. First look at an XML file:
Example 1
〈?xml version= "1.0" encoding= "gb2312"?ResourcesBooksName 〉xml Introductory Refinement 〈/nameAuthor John 〈/authorPrice currency unit = "RMB"
XML Tree Structure
XML documents form a tree structure that begins with "root" and expands to "branches ". An XML document instance
XML uses a simple self-descriptive Syntax:
George JOHN reminder don't forget the meeting!
The first
Data is typically provided to the WEB application in XML format. However, XML data is inherently hierarchical, so you might want to be able to use XML data, such as a GridView or DropDownList control, in a list-based control. This walkthrough
Now let's use Notepad to create our XML file. First look at an XML file:
Example 1
〈?xml version= "1.0" encoding= "gb2312"?ResourcesBooksName 〉xml Introductory Refinement 〈/nameAuthor John 〈/authorPrice currency unit = "RMB"
XML columnist Benoit Marchal continues to describe XI, which is an open source project that converts old text into XML. To improve efficiency, Xi now implements the SAX XMLReader interface, which proves that the interface makes XI link to an XSLT
Now let's use Notepad to create our XML file. First look at an XML file:
Example 1:
〈?xml version="1.0" encoding="gb2312" ?〉 〈参考资料〉 〈书籍〉 〈名称〉XML入门精解〈/名称〉 〈作者〉张三〈/作者〉 〈价格 货币单位="人民币"〉20.00〈/价格〉 〈/书籍〉 〈书籍〉 〈名称〉XML语法〈/名称〉 〈!--此书即将出版--〉 〈作者〉李四〈/作者〉 〈价格
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.