때로는 파라 태그는 범위를 가지고 있으며, 경우에 따라서는 그 아이들을 통해 반복에 의해 내가 처리하기 위해 노력하고 건의 할 것,하지 않기 때문에
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"];
NSData * data = [NSData dataWithContentsOfFile:filePath];
TFHpple * tutorialsParser = [[TFHpple alloc] initWithHTMLData:data];
NSString *tutorialsXpathQueryString = @"//div[@id='NewsPageSubTitle']";
NSArray *tutorialsNodes = [tutorialsParser searchWithXPathQuery:tutorialsXpathQueryString];
for (TFHppleElement * element in tutorialsNodes) {
NSLog(@"%@", element);
NSLog(@"%@", [element tagName]);
NSLog(@"%@", [element attributes]);
NSLog(@"%@", [element children]);
for (TFHppleElement *childElement in [element children]) {
NSLog(@"%@", childElement);
}
}