• 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: NSPropertyListSerialization and xml format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPropertyListSerialization and xml format


  • Subject: Re: NSPropertyListSerialization and xml format
  • From: Jean-François Veillette <email@hidden>
  • Date: Tue, 31 Aug 2004 15:49:24 -0400

I'm not sure the format is compatible, but you can use WOXMLCoder.

It's not directly related to your question, but here is my experience with the plist format and xml.
I needed a property list to be loaded by my woapp to configure some static informations. I thought let's use .plist. Unfortunately the .plist format didn't cast the values correctly, it was all strings.
So I thought, let's use the .xml format, at least in there I can specify the type of the value (for number and date for example). But unfortunately, the plist .xml reader didn't cast the value accordingly to the given spec, all my values where strings again.
So if you want to use a property list file that will cast correctly your values, use WOXMLCoder.
Use WOXMLCoding.
- first created the dictionary that you want in memory, representing the plist properties.
- use WOXMLCoder to convert the dictionary in a xml stream, now you have a sample file, that you can read to get back your dictionary.


- jfv


Le 04-08-31, ` 15:06, Jacky Gagnon a icrit :

Hi,

I tried to use NSPropertyListSerialization.dataFromPropertyList for
writing a file in plist.

All is working fine, except the plist is in ASCII format; I want to
write it in XML format.

Is it possible to create a plist in XML format with WO?

Thanks!

Jacky :-)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >NSPropertyListSerialization and xml format (From: Jacky Gagnon <email@hidden>)

  • Prev by Date: Re: EOModeler Crashing!
  • Next by Date: Re: EOModeler Crashing!
  • Previous by thread: NSPropertyListSerialization and xml format
  • Next by thread: Add User to Workgroup Manager with Email....
  • Index(es):
    • Date
    • Thread