Page 1 of 1

XML to OpenStep converter

Posted: Sat Jan 02, 2010 5:10 pm
by ADCK
Anyone know of a program that will convert XML to OpenStep and OpenStep to XML?

Would save me alot of time manually recoding certain files.

For example i want to add shaders to a certain oxp that's written in XML, but i'm only really familiar with OpenStep.

Posted: Sat Jan 02, 2010 5:17 pm
by Corny
On a mac, you can open them with the Property List Editor (part of the Developer Tools) and save them as XML (or vice versa), so if you don't find anything (and don't have a mac), tell me which file it is and I'll convert it to you.

Posted: Sat Jan 02, 2010 5:26 pm
by ADCK
<ignore this post, problem solved>

Posted: Sat Jan 02, 2010 5:44 pm
by ADCK
http://www.filebuzz.com/fileinfo/54322/ ... ndows.html

Found that, automatically converts openstep to XML, but not the other way around, and the thing doesnt save files, so have to copy and paste...

And it seems to convert some things that should be <real> to <string>

But it works, even without the saving and it being one way, it did what i needed it to do.

Posted: Sat Jan 02, 2010 6:04 pm
by Thargoid
For XML to openStep, I usually find search and replace within your editor of choice to be quite sufficient for most of the work, with a little manual tidying up afterwards.

Posted: Sat Jan 02, 2010 6:11 pm
by ADCK
Learn something new everyday, appreantly in XML for oolite you don't need to use <real> , <integer>, <whatever> can just use <string> for all, oolite doesn't care.

Posted: Sat Jan 02, 2010 7:18 pm
by JensAyton
ADCK wrote:
Learn something new everyday, appreantly in XML for oolite you don't need to use <real> , <integer>, <whatever> can just use <string> for all, oolite doesn't care.
Yep. This is necessary because OpenStep plist format doesn’t have any number types, just strings, arrays and dictionaries.