title: Hpple parsing HTML with Objective-C
body: <p>I've follow the tutorial from <a href="http://www.raywenderlich.com/14172/how-to-parse-html-on-ios" rel="nofollow">RayWendErlich</a> to parse HTML node. </p>
  
  <p>I get the content from an <code>index.html</code>.
  I've try to use this method to fetch the <strong>background</strong> value.</p>
  
  <pre><code>+ (void)parseWithHTMLString:(NSString *)string
  {
    NSData *data = [string dataUsingEncoding:NSUTF8StringEncoding];
    TFHpple *parser = [TFHpple hppleWithData:data isXML:NO];
  
    NSString *XpathQueryString = @"//div[class='content']/div/div";
    NSArray *nodes = [parser searchWithXPathQuery:XpathQueryString];
    NSLog(@"%@",nodes);
  
    NSMutableArray *resultArray = [[NSMutableArray alloc] initWithCapacity:0];
    for (TFHppleElement *element in nodes) {
      Model *model = [[Model alloc] init];
      model.colorString = [element objectForKey:@"style"];
      [resultArray addObject:model];
      //NSLog(@"%@",model.colorString);
    }
  }
  </code></pre>
  
  <p><strong>So the question is:</strong></p>
  
  <p>What I had done wrong?</p>