Re: Creating NSXMLDocument programmatically

2016-03-22 Thread John Brownie
___ 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: https://lists.apple.co

Re: Creating NSXMLDocument programmatically

2016-03-22 Thread Quincey Morris
On Mar 22, 2016, at 19:46 , John Brownie wrote: > > setDTD: became unavailable in 10.10, but there appears to be no replacement A number of redundant “freestanding” getter/setter method declarations were removed from the SDK, but the DTD property remains. You should be able to set it that way.

Creating NSXMLDocument programmatically

2016-03-22 Thread John Brownie
I'm building an XML tree from an XML file which is XML 1.1, so has character references that NSXMLDocument cannot handle natively. So, I'm working with a modified version of the Expat parser and building the tree as I go. The problem: How do I associate a DTD with the document? setDTD: became