I tried using this code I found from various examples through the forums:
filter = new TagNameFilter("img");
mParser.setURL ("file:///C:/FC.htm");
NodeList all = mParser.parse(null);
//System.out.println(all.toHtml());
list = all.extractAllNodesThatMatch(filter);
Unforuntately doing this, i do not find any nodes in the call to extractAllNodesThatMatch. Am I missing something?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
I tried using this code I found from various examples through the forums:
filter = new TagNameFilter("img");
mParser.setURL ("file:///C:/FC.htm");
NodeList all = mParser.parse(null);
//System.out.println(all.toHtml());
list = all.extractAllNodesThatMatch(filter);
Unforuntately doing this, i do not find any nodes in the call to extractAllNodesThatMatch. Am I missing something?
Thanks.
ok, figured this out, i need to pass in a second parameter to extractAllNodesThatMatch. To search down the list I need to pass in true.
Thanks,