kynguyenchoppvn / xmlwise

Automatically exported from code.google.com/p/xmlwise
0 stars 0 forks source link

Plist.toXml function should accept any element #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I was using this library for a project where I had to implement the Apple MDM 
process. In this process it is common to bundle some payloads together and in 
that case the main element of a Plist is an array and not a dictionary. I ran 
into problems there...

According to the DTD (http://www.apple.com/DTDs/PropertyList-1.0.dtd) the 
Root-<plist> element can be containing any type of information. The toXml 
Method only accepts Map<String, Object> as the data argument, although it uses 
the objectToXml method anyway that can parse any element.

So you should change the method signature of Plist.toXml(Map<String, Object> 
data) to Plist.toXml(Object data)

Original issue reported on code.google.com by klaus.za...@gmail.com on 22 Sep 2011 at 7:22

GoogleCodeExporter commented 8 years ago
This is fixed in the latest checkin, but I want to write some extra tests.

Original comment by christof...@gmail.com on 30 Sep 2011 at 11:07