Re: A good method for xml usage/parsing
Re: A good method for xml usage/parsing
- Subject: Re: A good method for xml usage/parsing
- From: Alex Rice <email@hidden>
- Date: Fri, 24 Jan 2003 08:23:03 -0700
On Thursday, January 23, 2003, at 10:31 PM, Francisco Tolmasky wrote:
Ok, I'm writing a program and I'd like to use xml as my file type.
Now, if I'm not mistaken archiving things does put them in some sort
of xml format correct? I'm not sure if this is enough though. I
basically want to store a database in xml format, what would you guys
suggest is the best method. I took a look at the core foundations
stuff and there must be an easier way. I also saw STXML, but with a
sophisticated system that complies to standard like cocoa, I would
think it would be built in no?
Any help is greatly appreciated. Thank you.
Some other options are
1) NSPropertyListSerialization -- read about the difference between
"archives" and "serialization". They are different.
NSPropertyListSerialization works with for NSData, NSString, NSArray,
NSDictionary, NSDate, and NSNumber. However, any other objects can be
archived into an NSData object. Using that you could serialize
everything to/from a PropertyList. This is nice because you don't have
to mess with Core Foundation.
2) Take a look at Marcel Weiher's MPWXmlKit
http://www.metaobject.com/Community.html
3) Learn Core Foundation XML functions for an all-purpose parser. This
would be a lot more work.
Alex Rice <email@hidden> | Mindlube Software |
http://mindlube.com
what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.