> Sounds promising, but the document type declaration doesn't get written out to file.
If I create the document using a string instead, it works: NSString *docString = [NSString stringWithFormat:@"<!DOCTYPE myDocType><myDocType></myDocType>"]; NSXMLDocument *myDoc = [[NSXMLDocument alloc] initWithXMLString:docString options:0 error:&err]; [[myDoc DTD] setName:@"myDocType"]; Seems equivalent to half a dozen other things I tried, but this is the only one that works. Bruce _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com