• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating an XML document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating an XML document


  • Subject: Re: Creating an XML document
  • From: SA Dev <email@hidden>
  • Date: Fri, 15 Jul 2005 08:33:28 -0400


You could also load everything in to a container class such as NSArray or NSDictionary and use the -writeToFile:atomically: method, which generates a pretty plist file, which is XML. To get it back, just use the -initWithContentsOfFile: method and load the file back into the array or dict. Just give it a .xml extension.




On Jul 15, 2005, at 2:38 AM, Zach Wily wrote:

You have several options for generating XML on 10.3:

Core Foundation:
http://developer.apple.com/documentation/CoreFoundation/Conceptual/ CFXML/index.html


XMLTree (obj-c wrapper around the Core Foundation XML functions):
http://iharder.sourceforge.net/macosx/xmltree/

libxml (libxml ships with 10.3):
http://xmlsoft.org/

I'm sure there's also plenty more out there to choose from.

zach


On Jul 14, 2005, at 4:37 PM, Ian was here wrote:


I'm converting all my data into XML format and saving
it as a text file with the .xml extension. I was
wondering if anyone knew of any 10.3 classes that did
any data to xml tag conversions. I haven't found any
in the documentation. I really wish I could use the
10.4 classes, but must keep my minimum to 10.3 for
now.

thanks.




____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Creating an XML document (From: Ian was here <email@hidden>)
 >Re: Creating an XML document (From: Zach Wily <email@hidden>)

  • Prev by Date: Re: html for safari on the fly
  • Next by Date: Draw a portion of NSTextView
  • Previous by thread: Re: Creating an XML document
  • Next by thread: Get a selector type (SEL) from a string dinamically
  • Index(es):
    • Date
    • Thread