Creating NSXMLDocument programmatically
Creating NSXMLDocument programmatically
- Subject: Creating NSXMLDocument programmatically
- From: John Brownie <email@hidden>
- Date: Wed, 23 Mar 2016 12:46:29 +1000
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
unavailable in 10.10, but there appears to be no replacement. I'm still
running Xcode 7.0.1, so maybe there's something newer that I can't see,
but a Google search doesn't turn it up. Using addChild: raises an
exception, so I'm wondering if there is any way to do this now.
Thanks for any pointers.
John
--
John Brownie, email@hidden or email@hidden
Summer Institute of Linguistics, Ukarumpa, Eastern Highlands Province,
Papua New Guinea
Mussau-Emira language, Mussau Island, New Ireland Province, Papua New Guinea
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden