Could some one please tell me how do we use the text function in the XPath query. I needed the information for Hillman Library present in the xml
http://www.sis.pitt.edu/~arazeez/Librarydata.xml
resultNodes = [rssParser nodesForXPath:@"//Library[1]/Hours/TermOrHolidays" error:nil];.
for now I used the [1]. But I wanted to use the text function
NSString *libName = @"Hillman Library";
resultNodes = [rssParser nodesForXPath:@"//Library[LibraryName/text() = libName]/Hours/TermOrHolidays" error:nil];
But this is not working out. Could some one please let me know how I go about doing this.
Thanks