Menu

Problem accessing the nodelist - plz help

Help
2005-11-10
2013-04-27
  • sandhya2683

    sandhya2683 - 2005-11-10

    Hi again,
    THanks for your quick reply. But I guess I need still more information. Its like all my table tags are in the same nodelist like table0 in ndelist[0], table1 in nodelist[1]...so on. I need to search the text part of this table in <td> and extract the table. I see SearchFor tag would be helpful for this, is it true? Or do I need to go on for another one.
    And also one more question:
    How do I print the whole node just as it is.
    I really apologise for asking such naive questions, but any help would be greatly appreciated.
    Thanks,
    Sandhya

     
    • Derrick Oswald

      Derrick Oswald - 2005-11-11

      A NodeName filter with name "TABLE" will place all the tables in one NodeList. They are still linked via parents and children into their correct locations on the page though.

      It sounds like you could use a more specific filter (or maybe more than one) in order to extract the table with the text you want. Did you try the FilterBuilder application?

      To see the entire node as is, use toHtml():
        System.out.println (node.toHtml ());

       

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.