hpple

TFHppleElement (Hpple), parsing HTML on iphone

I'm using Hpple and it's been great so far however I want to get all the divs inside another and that I can do. But then I am unable to further parse the contents (innerHTML, and in the source it is labelled innerHTML not innerText) asking for the elements content returns nothing as there is no text directly in that element, only child n...

XPath Text Search/Sibling Selection

This question might be a little specific but the test program im writing uses XPath to find the data i need in HTML. This piece of HTML(found here) is what im trying to parse. <table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="textSm" align="right">1.&nbsp;</td> <!-- Location of the number is here --> ...

XPath Ancestor Axis Multiple Parents

So I am writing a mac application that parses SF Giants baseball statistics using xpath. In my situation I have a specific number Identifier of a person <td class="textSm" align="right">1.&nbsp;</td>(in my application a person could search find a stat based on a number input) but from there I need to back out from that spot in the HTML, ...

How do you get the attributes of a Child Array using TFHpple?

I'm using TFHpple (which uses XPath) to parse an HTML document. I can get the content of various nodes, etc. But the code I found on GitHub seems incomplete. It has a method to get the attributes of a node but the child array. So I wrote one and failed. The two "attributes" methods below work fine. Basically, I'd like to get the child ar...

Regular Expressions (HTML parsing on iPhone)

Hello, I am trying to pull data from a website using objective-c. This is all very new to me, so I've done some research. What I know now is that I need to use xpath, and I have another wrapper for that called hpple for the iPhone. I've got it up and running in my project. I am confused about the way I retrieve information from th...