• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Reading XML 1.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Reading XML 1.1
      • From: John Brownie <email@hidden>
  • Prev by Date: Re: How to set a TextField
  • Next by Date: question about last used date
  • Previous by thread: Re: How to set a TextField
  • Next by thread: Re: Reading XML 1.1
  • Index(es):
    • Date
    • Thread