Re: NSDictionary convert into NSXMLDocument
Re: NSDictionary convert into NSXMLDocument
- Subject: Re: NSDictionary convert into NSXMLDocument
- From: Jerry Krinock <email@hidden>
- Date: Tue, 14 Feb 2006 18:11:49 -0800
- Thread-topic: NSDictionary convert into NSXMLDocument
on 06/02/14 06:05, Raphael at email@hidden wrote:
> hi,
> is it posible to convert a NSDictionary into a NSXMLDocument?
> My target is, a client server app. I would like for test only
> communicate with
> a php client. the php client reads the from a socket the NSDictionary.
> That´s why I need a xml structure.
> I now that I could create a plist file with a NSDictionary but I only
> get it as binary version wit NSKeyedArchiver. And I don´t think, that
> the php client can convert it.
I'm not exactly I understand the application, but
NSPropertyListSerialization -dataFromPropertyList:format:errorDescription
with format = NSPropertyListXMLFormat_v1_0 is going to give you something a
lot more readable than NSKeyedArchiver.
_______________________________________________
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