TAILIEUCHUNG - Professional XML Databases phần 4

(và các loại tài liệu) thông qua việc sử dụng mã, và là một cách để giao tiếp với mã trong các chương trình mà chúng tôi viết. Trong một câu, mô hình đối tượng tài liệu cung cấp truy cập được tiêu chuẩn hóa các bộ phận của một tài liệu XML. Ví dụ, DOM cho phép chúng tôi: | SAX - The Simple API for XML Take What You Need - Storing Result Data In the previous section we worked the document we were given into a new file or structure that could be used instead of the original. In the next example we do not stop with an end document but will pass the transformed data directly to a database. We will work with a fanciful stock quote reporting stream that contains numerous nodes for describing each company. However we are only interested in writing the company name the current stock price opening price and current rating along with minor analysis. Example 5 - Complex State Our final application will take the same basic shape as Example 2 in fact the UI is borrowed directly. This time though we are going to be more explicit about what we expect to find and we are going to parse the XML string to get only pieces of data to write to our stock analysis database. The UI form has a small application added inside it that will display the summarized information we wanted to see. Of course while we are going to use one form to hit both processes in the real worlds the saxDeserialize class would be run behind the scenes. When you have completed this example you should be able to Create a complex state mechanism for tracking the value of several elements during the execution of the parser List yourself among the known masters of SAX parsing This example uses Microsoft SQL Server or 2000 . The SQL command file used to set up the database and an Excel spreadsheet of the data are both available with the code download for this book. You ll also find the stored procedures you need defined in the code package and the VB project that contains everything else. In order to try this yourself you will need a database named Ticker with the following setup f stocksymbol CompanyName Row_ID stocksymbol HighS2 PrevClose Rating Row_ID stocksymbol Currentprice QuoteTime 275 Chapter 7 The XML The XML document we are looking at - - at is a series of stock .

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.