Question

i want to get the main texts of this page :
[this link][1]
i used this code to find the main text :

NSString *tutorialsXpathQueryString = @"//div[@id='middlepane']/table[2]/tr/td/div[1]/font";

but it is not working!

it is the saved page of that link

http://www.mediafire.com/?0t9de2f0b0928nk

@Ryan Kohn : no error happened and just returns empty or NULL value

that file is complex and large and i cant write in this page !

Was it helpful?

Solution

Try this XPath:

string pageContentXPath = "//div[contains(@align, 'justify')]";

Note that this may be a bit unstable because it's using the 'align' property of the div. If this changes, the XPath will not work anymore.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top