From: Loren C. <lor...@gm...> - 2012-03-21 16:33:09
|
Hello folks, I am working on generating a property list file for an iOS application. The form of the file is suppose to be: <?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"> <plist version="1.0"> <dict> . . . </dict> </plist> I am using the following file:serialize() call: let $file : = file:serialize($doc, '/Users/.../lctmp.xml', ('encoding=utf-8', 'method=xml', 'indent=yes', 'doctype-public=http://www.apple.com/DTDs/PropertyList-1.0.dtd', 'omit-xml-declaration=no' ) ) And am getting: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE plist PUBLIC "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> . . . </dict> </plist> How do I add the "-//Apple//DTD PLIST 1.0//EN" to the serialize call such that it shows up in the DOCTYPE section of the file? I have tried a few things and they all failed. I am hoping that the list will have the solution. Thanks, Loren |