How hard would it be to convert an XML file to .plist?

dalearyous

Senior member
Jan 8, 2006
836
0
0
i want to convert an XML file i currently have to a plist file. i need it to be relatively quick and easy or is there some way to make it automated?

background:
i am writing an iPhone app that right now reads an XML file from web server, parses the data which i then use in my program. problem is the XML file is very large and it takes a long time for the app to load and i would rather have the program work regardless if you have internet or not. therefore, i want to modify my program to use a plist stored on the phone instead (plist also easier to search and manipulate) and i was wondering how difficult would it be to convert the XML file to plist file?
 

Atheus

Diamond Member
Jun 7, 2005
7,313
2
0
Correct me if I'm wrong, but isn't a plist file already a type of XML file?
 

dalearyous

Senior member
Jan 8, 2006
836
0
0
the structure seems almost the same thats why i figured it couldn't be hard. but i am new to iphone dev. not sure.

*edit

i feel kinda stupid. i downloaded plist editor pro for mac and realized that the bottom window auto generates the xml code as you create your tree in the top window. trouble is it uses arrays and dictionaries and im trying to figure out the best way to organize my data now. but as far as a quick conversion i still don't know. i would hate to have to edit a plist with what could be over four thousand children and siblings every time there is an update to the information i am using