03.01.2015 Views

C# 5.0 Programmer's Reference

Visual Studio 2013 C# 5.0 Programmer's Reference

Visual Studio 2013 C# 5.0 Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

534 ❘ CHAPTER 24 XML<br />

Serialization Deferred<br />

Serialization is the process of converting an object such as a Book or Employee into<br />

a stream representation, usually in the form of text. Deserialization is the process<br />

of converting a serialization back into the object it represents.<br />

You can use XML to serialize and deserialize objects. Serialization and deserialization<br />

are somewhat specialized, but they are quite useful in many applications. Rather than<br />

trying to squeeze them into this chapter, they are explained in the next chapter.<br />

The following section explains XML syntax. The sections after that explain how you can use XML<br />

in your <strong>C#</strong> programs.<br />

Basic XML Syntax<br />

Each element is represented by an opening tag and a corresponding closing tag. Opening tags are<br />

enclosed in brackets < and >. Closing tags look like opening tags except they begin with

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!