TAILIEUCHUNG - Professional XML Databases phần 3

Trong hai chương kế tiếp, chúng ta sẽ tìm hiểu làm thế nào để thao tác, thêm, cập nhật, và xóa dữ liệu đó trong khi nó vẫn còn trong tài liệu XML của nó, và làm cho nó có sẵn cho ứng dụng xử lý. Document Object Model (DOM) cung cấp một phương tiện để làm việc với các tài liệu XML | DOM Having seen how to model our XML data we now need to know how to work with that data. In the next two chapters we are going to learn how to manipulate add update and delete that data while it is still in its XML document and make it available to processing applications. The Document Object Model DOM provides a means for working with XML documents and other types of documents through the use of code and a way to interface with that code in the programs we write. In a sentence the Document Object Model provides standardized access to parts of an XML document. For example the DOM enables us to Create documents and parts of documents. Navigate through the document. Move copy and remove parts of the document. Add or modify attributes. In this chapter we ll discuss how to work with the DOM to achieve such tasks as well as seeing What the DOM is. What interfaces are and how they differ from objects. What XML related interfaces exist in the DOM and what we can do with them. How to use exceptions. The DOM specification is being built level-by-level. That is when the W3C produced the first DOM Recommendation it was DOM Level 1. Level 1 was then added to to produce Level 2. At the time of writing DOM Level 3 was in its development stages so in this chapter we ll be discussing the DOM Level 2. Chapter 6 You can find the DOM Level 2 specification at http TR DOM-Level-2 and there s more information at http TR 1999 CR-DOM-Level-2-19991210 . What is the DOM As we are able to create our own XML vocabularies and document instances that conform to these vocabularies we need a standard way to interact with this data. The DOM provides us with an object model that can model any XML document - regardless of how it is structured - giving us access to its content. So as long as we create our documents according to the rules laid down in the XML specification the DOM will be able to represent them and give us interfaces to work with them .

Đã 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.