Reputation: 649
I have a to convert some 1000 xml files from XML to PLIST format(such as <dict>
and <arrays>
. Is there already existing tool/application or algorithm available?
Upvotes: 4
Views: 1496
Reputation: 1845
Use an XSLT processor. C# has a nice API to do just that, but if you need to automate it on various platforms, use something portable like: xsltproc (which is available virtually everywhere), or SAXON XSLT (for XSL 2.0, but kind of a nuisance to use).
Upvotes: 0
Reputation: 188134
Do you want to convert from within C#? If this is not the case, there is a tool called plutil
available since Mac OS X 10.2:
plutil -convert xml1 some_file.plist
plutil can be used to check the syntax of property list files, or convert a plist file from one format to another.
Upvotes: 0