cocoa touch - How to parse a web page source to get the values for an array -
i trying implement lotto game on ipod , need parse actual lotto page winning numbers , put them in array compare them numbers user had entered , find out if winner or not. can me because stuck it?
thanks in advance! :)
what need dom parser, such apple's nsxmlparser.
specifically you'd want use xpath parsing read value of specific dom node on lotto page's dom tree.
as ios not come nsxmldocument (which supports xpath), you'd need described here:
using libxml2 xml parsing , xpath queries in cocoa
other solutions parsing xml/html:
how choose best xml parser iphone project
Comments
Post a Comment