Can`t get text with textForElement

Post here if you need help or have any general queries regarding TBXML

Can`t get text with textForElement

Postby stinson » Fri Jul 30, 2010 7:38 am

Hey guys,
I am parsing html with TBXMl. My problem is that I can not get the text of the h3 element when the structure of the html is like the following:


Code: Select all
<h3><span>something</span>the text I just can not grab</h3>


Is it not valid to have text after another tag inside a tag, or what`s the problem here?
Anyone ever tried to something similar?
Maybe someone knows how to adjust the parser class to achieve this?

Cheers for any help.
stinson
 
Posts: 1
Joined: Fri Jul 30, 2010 7:33 am

Re: Can`t get text with textForElement

Postby Tom Bradley » Fri Aug 20, 2010 3:22 am

Hi stinson,

I'm afraid TBXML does not handle HTML. HTML may look very similar to XML but there are a few key differences that the parser cannot handle. At this stage there aren't any plans to add HTML paring to TBXML though this may change in the future.

Thanks
Tom Bradley
Site Admin
 
Posts: 47
Joined: Sun Feb 21, 2010 8:44 pm


Return to General Queries

Who is online

Users browsing this forum: No registered users and 1 guest

cron