Solved

The MyHandler Class Extends the DefaultHandler Class; MyIs Is an InputStream

Question 71

Essay

The MyHandler class extends the DefaultHandler class; myIs is an InputStream reference containing an XML document that we want to parse using MyHandler; sp is a SAXParser reference. Write the code to start the parsing using the following parse method of the SAXParser class:
void parse( InputStream is, DefaultHandler dh )
// myIs is an input stream that contains an XML document
// sp is a SAXParser reference
// Your code goes here

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions