tailieunhanh - Professional LINQ phần 6

Trên bề mặt, LINQ to XML trông đáng sợ, nhưng điều này và ba chương trước nên đã xua tan tin đồn xấu xa. Hy vọng rằng, khi bạn bắt đầu làm việc theo cách của bạn thông qua chương này, bạn nhanh chóng nhận ra rằng nó thực sự không phải là xấu như bạn nghĩ. | Chapter 8 Advanced LINQ to XML Programming Topics foreach XElement el in xmlTree xw You should get the same results as the previous example. Summary On the surface LINQ to XML looks intimidating but this and the previous three chapters should have dispelled that vicious rumor. Hopefully as you started working your way through this chapter you quickly realized that it really wasn t as bad as you thought. Sure working with annotations events and axes can be tough but the purpose of this chapter was to show you that working with them also can be delightful and downright fun. You first examined functional construction and the important role it plays in LINQ to XML. Functional construction provides the capability to easily and efficiently construct an XML document within a single statement. Then you saw how to add annotations to elements and attributes in an XML tree using the AddAnnotation method and how to read annotations once they are applied. You explored LINQ to XML axis methods which provide the capability to quickly and efficiently query an XML tree to find elements and attributes and return their values. Knowing how to use these is absolutely necessary to understanding and writing query expressions. Finally you saw how to stream XML documents using LINQ to XML and the benefits that streaming provides such as managing memory and controlling the size of your XML documents. Chapter 9 the last chapter in this section focuses on LINQ to XML in Visual Basic .NET. 177 LINQ to XML and Visual Basic .NET Visual Basic .NET wasn t left behind when it comes to working with LINQ to XML. Visual Basic provides profound support for LINQ to XML through XML literals and XML Axis properties. This chapter focuses on the LINQ to XML differences that apply to Visual Basic .NET. You ll explore the following topics in this chapter How to create XML How to access XML How to load XML How to manipulate XML Creating XML You have to agree that LINQ to XML is .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.