Tools
Download Search CocoaTraces for Mac OS X 10.4 for easily searching in Cocoa Traces from any application supporting system services!
Site Statistics
41153 Total Views
41 Traces
41 Fragments
47 Comments
54 Tags
41 Traces
41 Fragments
47 Comments
54 Tags
Tags
audio badge category class crash dock fade file finder font gradient hack help icon indicator kqueue LoginItems menu metadata NSButton NSCell NSControl NSDictionary NSDirectoryEnumerator NSDocument NSMenu NSPopUpButton NSProgressIndicator NSScrollView NSSound NSSpeechChannel NSString NSTableColumn NSTableView NSTabView NSToolbar NSURLConnection NSURLRequest NSView NSWindow preferences readme record report SerialPort shell speech support TabBar timer tooltip wrapper xml zoom
Create an XML file from an NSDictionary
Tags: xml, NSDictionaryRelated Traces
Add a new comment or fragment
Fields marked with * are mandatory.
This is source code for a very simple XML parser and writer that takes an NSDictionary/CFDictionary and creates XML from it, or reads an XML file and creates a dictionary from it.
It does this like the property list serialization stuff in CoreFoundation, with the exception that it uses the keys as the tag names and the values as the tag data. Thus, it generates much more readable XML than property lists.
Suitable both for Cocoa and Carbon.