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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ());
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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 ());