com.meterware.httpunit.parsing

Interface HTMLParserListener

public interface HTMLParserListener

A listener for messages from the HTMLParser. This provides a mechanism to watch for errors and warnings generated during parsing.

Author: Russell Gold Benoit Xhenseval

Method Summary
voiderror(URL url, String msg, int line, int column)
Invoked when the parser wishes to report an error.
voidwarning(URL url, String msg, int line, int column)
Invoked when the parser wishes to report a warning.

Method Detail

error

public void error(URL url, String msg, int line, int column)
Invoked when the parser wishes to report an error.

Parameters: url the location of the document to which the error applies. msg the warning message line the line in the document on which the problematic HTML was found column the column in the document on which the problematic HTML was found

warning

public void warning(URL url, String msg, int line, int column)
Invoked when the parser wishes to report a warning.

Parameters: url the location of the document to which the warning applies. msg the warning message line the line in the document on which the problematic HTML was found column the column in the document on which the problematic HTML was found