The community is working on translating this tutorial into Vietnamese, but it seems that no one has started the translation process for this article yet. If you can help us, then please click "More info".
If you are fluent in Vietnamese, then please help us - just point to any untranslated element (highlighted with a yellow left border - remember that images should have their titles translated as well!) inside the article and click the translation button to get started. Or have a look at the current translation status for the Vietnamese language.
If you see a translation that you think looks wrong, then please consult the original article to make sure and then use the vote button to let us know about it.
Please help us by translating the following metadata for the article/chapter, if they are not already translated.
If you are not satisfied with the translation of a specific metadata item, you may vote it down - when it reaches a certain negative threshold, it will be removed. Please only submit an altered translation of a metadata item if you have good reasons to do so!
Introduction to XML with C#
XML is short for eXtensible Markup Language. It is a very widely used format for exchanging data, mainly because it's easy readable for both humans and machines. If you have ever written a website in HTML, XML will look very familiar to you, as it's basically a stricter version of HTML. XML is made up of tags, attributes and values and looks something like this:
<users> <user name="John Doe" age="42" /> <user name="Jane Doe" age="39" /> </users>
As you can see, for a data format, this is actually pretty easy to read, and because it's such a widespread standard, almost every programming language has built-in functions or classes to deal with it. C# is definitely one of them, with an entire namespace, the System.Xml namespace, to deal with pretty much any aspect of XML. In the following chapters, we will look into using them, both for writing and reading XML. Read on!