TAILIEUCHUNG - Apress-Visual CSharp 2010 Recipes A Problem Solution Approach_2

Một trong những khía cạnh đáng chú ý nhất của Microsoft NET Framework. Là hội nhập sâu rộng với XML. Trong các ứng dụng nhiều. NET, bạn sẽ thậm chí không nhận thức được bạn đang sử dụng công nghệ XML-they'll chỉ được sử dụng đằng sau hậu trường khi bạn serialize một Microsoft DataSet | C H A P T E R 6 XML Processing One of the most remarkable aspects of the Microsoft .NET Framework is its deep integration with XML. In many .NET applications you won t even be aware you re using XML technologies they ll just be used behind the scenes when you serialize a Microsoft DataSet call a web service or read application settings from a configuration file. In other cases you ll want to work directly with the namespaces to manipulate Extensible Markup Language XML data. Common XML tasks don t just include parsing an XML file but also include validating it against a schema applying an Extensible Stylesheet Language XSL transform to create a new document or Hypertext Markup Language HTML page and searching intelligently with XPath. In .NET Microsoft added LINQ to XML which integrates XML handling into the LINQ model for querying data sources. You can use the same keywords and syntax to query XML as you would a collection or a database. The recipes in this chapter describe how to do the following Read parse and manipulate XML data recipes 6-1 6-2 6-3 and 6-7 Search an XML document for specific nodes either by name recipe 6-4 by namespace recipe 6-5 or by using XPath recipe 6-6 Validate an XML document with an XML schema recipe 6-8 Serialize an object to XML recipe 6-9 create an XML schema for a class recipe 610 and generate the source code for a class based on an XML schema recipe 611 Transform an XML document to another document using an XSL Transformations XSLT stylesheet recipe 6-12 Use LINQ to XML to load create query and modify XML trees recipes 6-13 6-14 6-15 and 6-16 . 6-1. Show the Structure of an XML Document in a TreeView Problem You need to display the structure and content of an XML document in a Windows-based application. 261 CHAPTER 6 XML PROCESSING Solution Load the XML document using the class. Create a reentrant method that converts a single XmlNode into a and

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.