Reading XML 1.1
Reading XML 1.1
- Subject: Reading XML 1.1
- From: John Brownie <email@hidden>
- Date: Mon, 14 Mar 2016 19:14:11 +1000
Is it possible to read an XML 1.1 file using NSXMLDocument? The crucial
thing for my purposes is that the character set allowed in XML 1.1 is
larger. XML 1.0 defines characters as:
Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
[#x10000-#x10FFFF]
XML 1.1 defines:
#2 Char ::= [#x1-#xD7FF] | [#xE000-#xFFFD] |
[#x10000-#x10FFFF] /* any Unicode character, excluding the surrogate
blocks, FFFE, and FFFF. */
#2a RestrictedChar ::= [#x1-#x8] | [#xB-#xC] |
[#xE-#x1F] | [#x7F-#x84] | [#x86-#x9F]
I need to be able to handle the RestrictedChar characters, but
NSXMLDocument apparently only handles the XML 1.0 character set.
Is there a way to make NSXMLDocument handle the fuller character set? If
not, is there an alternative that will enable me to parse an XML 1.1
file with a minimum of effort?
Thanks,
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