Đang chuẩn bị liên kết để tải về tài liệu:
Use XMLReader to Read an XML Document

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Sử dụng XMLReader để hiểu một tài liệu XML Trong thế nào-Để 12,1, tôi đã học được cách để viết ra dữ liệu đến một tài liệu XML bằng cách sử dụng XMLWriter. Làm thế nào để đọc dữ liệu bằng cách sử dụng XMLReader? | 12.2 Use XMLReader to Read an XML Document In How-To 12.1 I learned how to write out data to an XML document by using the XMLWriter. How do I read data using the XMLReader Technique Whereas the XMLWriter has one implementation class the XMLReader has three depending on the task you need to perform. Those classes are listed in Table 12.4. Table 12.4. XMLWriter Implementations Class Name Purpose Descriptions XMLT extReader Reads character streams. This is a forward-only reader that has methods returning data on content and node types. No validation occurs. XMLNode Reader Provides a parser over an XML Document Object Model DOM API similar to the XMLNode tree. XMLValidatingReader Takes an XMLTextReader adding validation. In doing so it provides a fully compliant validating or non-validating XML parser with DTD XSD schema or XML-Data Reduced XDR schema support. For this How-To you will be using the XMLTextReader to read the file and display the results. To do this you will use the following methods Read. Reads a line of the character stream out of the XMLReadReader. AttributeCount. Gives the count of attributes. This depends on the type of data that is being read. In this case AttributeCount is used to display the individual attributes which will be columns. NodeType. Allows you to specify node types in the XML document. In the case of this How-To the System.Xml.XmlNodeType.XmlDeclaration is checked for so that no information is printed for that type of node. You can see the other node types by looking at intellisense for the NodeType property. Value. Represents the actual value of the line in the stream. Close. Closes the stream. Steps Open and run the Visual Basic .NET-Chapter 12 solution. From the main Web page click on the hyperlink with the caption How-To 12.2 Use XMLReader to Read an XML Document. When the page loads click the button labeled Read XML File. The example then reads the XML file that is specified in the text box labeled File to Read and displays the .

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.