Learn XML by "giving a reason first"

Source: Internet
Author: User
Tags format config net web services
Xml

A few days ago, I saw an article listing the technologies that will not be eliminated in the 21st century, where XML is ranked. The. NET Framework has been launched for more than 3 years, and XML is ubiquitous in. NET Framwork. From the common class library to the Asp.net,ado.net, Winform,web Service, to vs. NET 2003 Ide,xml figure is everywhere. In. NET Framwork, XML is in a very important position. In the upcoming VSTS 2005, the importance of XML is increased to unprecedented heights.

As a. NET programmer, in the face of such an important technology, it is impossible to be indifferent, without any act. And I started with Vs.net 2002, and I've been using. NET technology so far, although the occasional use of XML technology, in some programs in XML-formatted configuration files, but the end is a smattering of XML. Every time you use it, you need to look up a bunch of help and Healey the task at hand. The understanding of XML has not been further. Seeing VSTS 2005 coming out, the importance of XML is growing for. NET programmers. It is a technology that is so important that it is inseparable from my profession and that it is 21st century, and will become more and more popular. I can no longer do nothing, and I cannot allow it to hinder my work. There's no way. There is only one way: learn it, conquer it. I do not believe that I have learned to program, TMD also learn not you this XML?

Borrowed this "C # Introductory Classic," I started the XML learning journey. As for the shelves that sleep n months of more than 10 storage such as: Design patterns, C # essence theory, what analysis Ah, design ah, refactoring ah. Agile development and the like, you guys go ahead and endure it. Don't worry, I won't forget you. The next study note must be you!

Preface--The reason for using XML.

I have found the reason to learn XML, mainly Microsoft and other it enterprises are used in XML,. NET Framwork is full of XML. The industry is saying that XML is a trend, and that future work is certainly inseparable from XML. But why would they want to use XML?

To get a clear picture of the problem, first understand what XML is? XML is a markup language similar to HTML.

<title>xml Learning Title>
Head>
<body>
<b> articles are difficult to write. This blog does not know whether can stick to b>
<br> My Contact:<br>
<b>blogID:cwbboyb>
<br>email:cwbboy@gmail.com
<br>qq:3243629
<body>

This is an ordinary HTML tag. HTML markup to the browser describes the document as it will be displayed. But there are no instructions as follows:
The data consists of two different healing points, one describing, and my data.
Listed my various materials, the browser does not know what I am showing, only know how to show. Just shows the format of the display. Can't express other meanings.

XML is very similar to HTML. However, XML does not contain a browser display format. It contains only tags and data. Not telling the browser when to change lines, when it needs to be bold. But the data that the XML presents and the meaning it represents:

<Blogs>
<blog>
<Id> cwbboyid>
<Email>cwbboy@gmail.comEmaiL>
<QQ>32437629QQ>
<blog>
<blog>
<Id>wishId>
<Email>wish@gmail.comEmaiL>
<QQ>32437629QQ>
<blog>
<Bolgs>

The XML structure is clear and can explain the meaning of the data representation. If you store data in XML format and pass it on to others over the internet, they can easily understand the role of the data. And it's easy to use. Advantages of XML:
Open
Simple
Self-descriptive
Interoperability
The structure is rigorous and clear
Can be extended

You can use XML to:
1. Store data like a database
2, stored program configuration information, clear. such as ASP.net's web.config,. NET's project files, WinForm's app.config
3, with different programs and platforms to communicate with each other data. such as: Web Services.

With XML, she's good, you're fine.

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.