NSXMLParser

Discussion in 'iOS Programming' started by KardelSharpeye, Jun 25, 2009.

  1. KardelSharpeye macrumors member

    KardelSharpeye

    Joined:
    Apr 28, 2009
    #1
    Hello friends,

    Does anyone know how to load a local xml file? Or have a link to a tutorial where i can load a file within the app instead of accesing a url?

    Any help is appreciated!
     
  2. namanhams macrumors regular

    Joined:
    Jun 3, 2009
    #2
    I just google your question and find a lot of things there.
     
  3. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #3
    Use initWithContentsOfURL with [NSURL fileURLWithPath:somePath]
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Or use initWithData: instead of initWithContentsOfURL:
     

Share This Page