Apple Plist Converted to Java Data Structures

I have a program that will receive the information displayed in it with a .plist on my server. However, I am going to do this for the PC, and I use Java for this. Plist files are not regular XML, so regular XML parsing libraries do not work. I cannot find any specific parsers, so I am lost in how to proceed. As I can see, my options are:

a) Find such a parser for the plist file

b) Make a workaround using a regular XML parser

c) Change the file from which the program receives its data (undesirable)

Does anyone else have experience working with languages ​​in languages ​​other than Objective-C?

+3
source share
2

@Jochen Bedersdorfer, .plist XML DTD. plutil, .

<?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">

:

, ?

. .

+3

:

  • plist XML, .
  • - , , XML.
  • XML- - , , XML. XML... try xmllint XML-plist.
  • , . , <dt>title</dt><dd>description</dd>.
  • plist XML-plist plutil OS X. XML .
  • XML key string. , . .
+3

All Articles