PDA

View Full Version : Need help with XML, HTTP POST help in cocoa




italiano40
Jul 30, 2008, 03:27 PM
i need help creating a xml parser and a HTTP POST in cocoa



lazydog
Jul 30, 2008, 04:28 PM
Are you using CFXMLTreeCreateFromData etc?


b e n

italiano40
Jul 30, 2008, 08:13 PM
all i need to do is make a very simple parser that would go to an element and get the value

lazydog
Jul 30, 2008, 10:49 PM
Well I don't know if this is the simplest or best way but you could use CFXMLTreeCreateFromData() to create a tree structure of your xml data, and then walk the tree to find the node(s) that you want using
CFTreeGetFirstChild, CFTreeGetNextSibling etc. Have a look at the CFTree reference for the details.

b e n