Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8151381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:22:08+00:00 2026-06-06T15:22:08+00:00

I have an XML file and I have to convert it into a property

  • 0

I have an XML file and I have to convert it into a property list file (plist). I tried the “plutil” command from the terminal, but it don’t works well. How can I convert?
Thanks a lot

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:22:10+00:00Added an answer on June 6, 2026 at 3:22 pm

    I accomplished this by writing a formula in excel to create the text of the plist file for you. Its pretty easy.

    1) (optional) In XCode, create a plist that has the formatting you want in the end. Save, and go to this in finder. Open it in textWrangler or text edit so that you can see what the tags are for each element in your plist.

    For example, you should find something like:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    
    <dict>
    
        <key>First Key Name</key>
        <array>
            <string>Before God we are all equally wise</string>
            <string></string>
            <string>Albert Einstein</string>
            <integer>0</integer>
        </array>
    
        <key>Second Key Name</key>
        <array>
            <string>Do not worry about your troubles.</string>
            <string></string>
            <string>Albert Einstein</string>
            <integer>0</integer>
        </array>
    
    </dict>
    </plist>
    

    2) I will assume:
    – Your spreadsheet represents a description of the same 4 properties for many rows/Objects/Levels
    – You have each array as a separate row in your spreadsheet
    – The same properties are being described for every row in the same order.
    – You will be able to access the items in the array by knowing which index they are stored at. ie, I would get the second Author by looking in the second array at index 2.

    Your spreadsheet should look something like this:

               A                B            C             D                E            F
    
         /--(Key Names)--\/-------------------(Properties of Each)-----------------\
    
    1    Level Name      |   Quote        |  Notes  |   Author        |  Favorited  | 
         ____________________________________________________________________________
    2    First Key Name  |  Before God... |         | Albert Einstein |      0      |
    3    Second Key Name |  Do not wor... |         | Albert Einstein |      0      |
    .
    .
    .
    

    So each of my objects will get its own key in my dictionary and each object is described by 3 Strings and an integer.

    3) The Formula

    On the right of the last column in my spreadsheet, I will write a formula that generates the xml code for that row:

    (F2) = CONCATENATE ("<key>",A2,"</key> <array> <string>",B2,"</string> <string>",C2,"</string> <string>",D2,"</string> <integer>",E2,"</integer> </array>")
    

    Drag the lower-right corner of this cell down into all the other rows and they will automatically populate the information for each row.

    Similarly, at the bottom of the spreadsheet, under all the rows you can use another formula to concatenate the rows. Say you had 300 rows:

    (F4) = CONCATENATE (F2:F300) 
    

    Now copy this data into an text file, and add the last few tags and doctype information, which you can copy from above. save with the extension .plist and you’re good to go! Add the file back into your xcode project and load it like any other plist.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an xml file and I want to convert into a xml file.
I have an XML file which I want to convert into JSON file using
I have an XML file and I'm trying convert it into a (table( HTML
I have an XML file that I am using XSL to convert into an
Imagine I have the folling XML file: <a>before<b>middle</b>after</a> I want to convert it into
I have to write a Perl script to convert an XML file into a
What is the easiest way to convert xml to html? I have xml file
I have created XML file,but I can't view it/output it.I know there is no
I have parsed XML file into objects, in which each object has a 1:1
I have an XML exported from Oracle DB, which will be downloaded into my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.