How do I parse an html file?
I need the data in between span tag.
<div id=currency_converter_result>1 AED = <span class=bld>0.4765 ANG</span>
How do I parse an html file?
I need the data in between span tag.
<div id=currency_converter_result>1 AED = <span class=bld>0.4765 ANG</span>
Since XHTML is XML, you can consider using NSXMLParser:
Hope this helps.
Check out this: https://github.com/zootreeves/Objective-C-HMTL-Parser
Basic Usage :
If you need only tag 'span' you can use NSRegularExpression such as this one
or, I prefer to create a NSDictionary from xml or html data and work with it. You can do it with XML-to-NSDictionary library.