Post Top Ad

2014/05/03

(IXJ) 6 - Validate XML using validator and ErrorHandler

Validate XML using validator and ErrorHandler

Video: ( Nguồn: Thầy Phạm Anh Đới) Click here

Quiz: Click here

Demo: Click here

Practice: Click here
1. Create an application, which demonstrates the generation of an error during 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.
2. Create an application, which demonstrates the implementations of DTDHandler interface methods. As the DefaultHandler implements the DTDHandler interface, you need to override the desired methods of DTDHandler interface.
3. Create an XML file Report.xml that contains the sales data for this financial year.
Create an application that demonstrates the implementations of LexicalHandlerinterface methods
The application should display the number of entities, CDATA, and comments in the Report.xml document.
5/03/2014 / by / 0 Comments

Không có nhận xét nào:

Đăng nhận xét

Được tạo bởi Blogger.

Post Top Ad