Convert from XML to PLIST

I have the ability to convert about 1000 xml files from XML format to PLIST format (for example, <dict> and <arrays> ). Is an existing tool / application or algorithm available?

+4
source share
3 answers

Do you want to convert from C #? If this is not the case, there is a tool called plutil available with Mac OS X 10.2:

 plutil -convert xml1 some_file.plist 

plutil can be used to check the syntax of property list files or to convert a plist file from one format to another.

0
source

Use the XSLT processor. C # has a good API for this, but if you need to automate it on different platforms, use something portable, for example: xsltproc (which is available almost everywhere), or SAXON XSLT (for XSL 2.0, but this may seem unpleasant).

0
source

Source: https://habr.com/ru/post/1316631/


All Articles