Need help with XML, HTTP POST help in cocoa

Discussion in 'Mac Programming' started by italiano40, Jul 30, 2008.

  1. italiano40 macrumors 65816

    italiano40

    Joined:
    Oct 7, 2007
    Location:
    NY
    #1
    i need help creating a xml parser and a HTTP POST in cocoa
     
  2. lazydog macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #2
    Are you using CFXMLTreeCreateFromData etc?


    b e n
     
  3. italiano40 thread starter macrumors 65816

    italiano40

    Joined:
    Oct 7, 2007
    Location:
    NY
    #3
    all i need to do is make a very simple parser that would go to an element and get the value
     
  4. lazydog macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #4
    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
     

Share This Page