Write NSDictionary to plist with XML-Stylesheet

zozon

New Member
Ok, so I'm trying to export my NSDictionary object to a plist. This works great. It generates a file that looks like this:\[code\]<?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>\[/code\]What I would like to do now is make this data available with XSL and want to add this directive to the generated PLIST\[code\]<?xml-stylesheet type="text/xsl" href="http://stackoverflow.com/questions/12773686/table.xsl"?>\[/code\]so the it looks like this:\[code\]<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://stackoverflow.com/questions/12773686/table.xslt"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>...</dic></plist>\[/code\]The data is created and written like this:\[code\]NSDictionary *myDict;// Add key/values to myDict to represent all my data, removed for easier reading[stats writeToURL:theFile atomically:YES];\[/code\]Does anybody have any suggestions or hints on how to do this?Thanks,Matt.
 
Back
Top