This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have successfully converted a file from HTML to XHTML format (xhtmlDocument) using the Tidy utility. Nevertheless, I am unable to access any nodes below the second table, using either getChildren() method or JDOM XPath navigation .
The content of xhtmlDocument file is as follows:
Below are the relevant codes and their outputs:
( i ) Using getChild()/getChildren() to access the content of the second table returned nothing either:
" target="_blank" rel="nofollow">http://www.w3.org/1999/xhtml]/>][/CODE] ( ii ) Using JDOM XPath to navigate to the second table:
" target="_blank" rel="nofollow">http://www.w3.org/1999/xhtml]/>]][/CODE] However, I would like to retrieve all the nodes below the second table based on the value of its attributes from the example provided. e.g. id="main-content".