parsing an XML document.
Write the code for handling different types of errors and exceptions.
Define an endDocument() method to override the contentHandler.
Declare a method to override the error method of errorhandler.
Chay :
interface methods. As the DefaultHandler implements the DTDHandler
interface, you need to override the desired methods of DTDHandler interface.
Chay :
Create an XML file Report.xml that contains the sales data for this financial
year.
Create an application that demonstrates the implementations of LexicalHandler
interface methods
The application should display the number of entities, CDATA, and comments in
the Report.xml document.
Chay :
Tổng Kết :
- Các advance of SAX giúp cho việc kiểm soát lỗi tốt hơn.
- Giúp cho việc xây dựng ứng dụng đơn giản hơn.
- Biết cách sử dụng handler để kiểm soát dữ liệu tốt hơn giúp ta làm việc hiệu quả dễ dàng hơn.
Không có nhận xét nào:
Đăng nhận xét