Anonymous - 2003-10-05

Can some one tell me what is wrong with the following code?

p = new Parser();
p.setInputHTML(strHtml);
p.setFeedback(new DefaultParserFeedback());
p.registerScanners();
ni = p.elements();

Here strHtml is a string consisting of the html to be parsed. ni is a node iterator. P is Parser.

The problem is, I always get ni.hasMoreNodes() as false.

Please help me.

Thanks in advance,
Kishor Babu