Menu

Modifying Nodes

Help
Colin
2006-03-02
2013-04-27
  • Colin

    Colin - 2006-03-02

    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.

     
    • Colin

      Colin - 2006-03-02

      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,

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.