The benefits
of this approach include reduced development time.
LINQ to XML versus MSXML
The big difference between LINQ to XML and MSXML is that MSXML is COM-based and,
therefore, not recommended for use in managed code. It also contains a native implementation of the
DOM, and includes support for XSLT and XPath. It is primarily used in programming languages that
support COM.
In contrast, LINQ to XML is not COM-based and is designed specifically for use with managed code.
Thus, you get all the benefits of managed code, such as garbage collection, type safety, and object-oriented
design features.
121
Part II: LINQ to XML
Summary
This chapter introduced you LINQ to XML and many of the fundamental programming concepts that
LINQ to XML utilizes and that will be used throughout the remaining LINQ to XML chapters of
this book.
You explored the LINQ to XML programming fundamentals??”that is, the many LINQ to XML classes
that the System.Xml.Linq namespace exposes. These classes are the backbone of LINQ to XML and
make working with XML much easier than using other XML tools.
Pages:
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222