Chapter 4. Working with XML
In This Chapter
Creating and storing XML files in Visual Studio
Using XML Designer to create an XML Schema
Transforming XML with style sheets
Using XML with the .NET Framework
With Visual Studio, you can use XML without writing any code whatsoever. This chapter shows you how to use the tools that Visual Studio provides for generating XML, including
XML Editor with IntelliSense and validation
XSLT Debugger
XML Schema Designer
XML snippets
Exploring XML
XML is the gold standard for working with data in modern software application development. XML, short for eXtensible Markup Language, is a markup language like HTML, which is the language used to create Web pages. In HTML, you use a set of predefined markup tags, such as <html>
and <body>
. The tags use attributes to further define the markup, such as <body background="white">
.
XML uses tags and attributes like HTML does. However, unlike in HTML, you define what tags and attributes to use. XML is used to describe data, so you make up your own tags and attributes to define the data. For example, an XML file could use these tags to describe data about a book collection:
<Books> <Book> <Author></Author> <Title></Title> <Book> </Books>
The XML file might use these tags because no predefined rules specify the tags you use. You decide which ones to use. As long as you declare which tags you want to use and then use them consistently, anyone can understand how to read your XML file. As you can see, XML is a powerful language ...
Get Visual Studio® 2010 All-in-One For Dummies® now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.