XML writer in SDK?

Discussion in 'iOS Programming' started by jsnuff1, Dec 10, 2008.

  1. macrumors 6502

    Joined:
    Oct 4, 2003
    Location:
    NY
    #1
    Does the iPhone SDK not have an native XML writer/editor?

    I was looking at NSXMLDocument, but this seems to only be part of the Mac OSX SDK and is not found in the iPhone SDK. The only thing that seems to be in the iPhone SDK is just the NSXMLParser

    What are you guys using to write/edit XML Documents?
     
  2. macrumors member

    chbeer

    Joined:
    Sep 22, 2008
    Location:
    Berlin
    #2
    On the iPhone NSXMLDocument and it's companion classes are left out. The reason is the rather small memory it has.

    You'll have to build your XML yourself by appending strings or writing to a stream or such things.
     
  3. thread starter macrumors 6502

    Joined:
    Oct 4, 2003
    Location:
    NY
    #3
    No one has any other suggestions for building XML files?

    As for appending strings and building one that way I tried it, but havent figured out how to represent quotation mark inside strings (since the whole NSString is inside quotation marks, any quotation marks inside that string screws it up and there are a lots of quotations inside XML files)
     
  4. macrumors newbie

    Joined:
    Feb 28, 2008
    #4

Share This Page