tailieunhanh - Writing Enterprise Applications with Java™ 2 SDK, Enterprise Edition phần 9

API SAX là một cơ chế điều khiển, sự kiện nối tiếp truy cập phần tử bằng cách xử lý yếu tố. API DOM cung cấp một cấu trúc cây tương đối quen thuộc của các đối tượng. Bạn có thể sử dụng API DOM để thao tác các hệ thống cấp bậc của các đối tượng ứng dụng đóng gói. API DOM là lý tưởng cho các ứng dụng tương tác bởi vì toàn bộ mô hình đối tượng hiện diện trong bộ nhớ, nơi nó có thể được truy cập và thao tác của người dùng. Xây dựng. | SEPTEMBER 27 2000 95 The APIs The file that co aes with your J2EE installation provides APIs for parsing and manipulating XML data. The JAR file currently provides SAX DOM and J2EE XML APIs. You can use whichever API best suits your needs because as shown in Figure 22 XML text is independent of the platform and language of its creation. Figure 22 Platform and Language Neutral Text SAX and DOM The SAX API is an event-driven serial-access mechanism that does element by element processing. The DOM API provides a relatively familiar tree structure of objects. You can use the DOM API to manipulate the hierarchy of application objects it encapsulates. The DOM API is ideal for interactive applications because the entire object model is present in memory where it can be accessed and manipulated by the user. Constructing the DOM requires reading the entire XML structure and holding the object tree in memory so it is much more CPU and memory intensive. For that reason the SAX API will tend to be preferred for server-side applications and data filters that do not require an inmemory representation of the data. Note You can find more information on the DOM and SAX APIs at this location http xml docs tutorial overview J2EE The platform-independent J2EE XML APIs use a DOM tree and provide a wealth of methods for manipulating the DOM hierarchy. The J2EE XML APIs are in the package and were used in this lesson s example. Please note that these APIs are subject to change. LESSON 6 EXTENSIBLE MARKUP LANGUAGE XML 96 SEPTEMBER 27 2000 Update and Run the Application Because all you have done in this lesson is change the JBonusBean class you can simply update and redeploy the application. Local Applicatons Window Highlight the 2BeansApp application. Tools Menu Select Update and Redeploy Application. Note The BonusApp application from the previous lesson is automatically uninstalled The web server runs on port 8000 by default. To open the .

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.