• 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
Re: XML schema support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML schema support


  • Subject: Re: XML schema support
  • From: Stuart Malin <email@hidden>
  • Date: Sun, 18 May 2008 18:20:50 -1000

As best as I understand, the NSXML* classes are build on libxml, but even so, there isn't, to my knowledge, any schema support exposed in Cocoa by these classes. However, the good news is that you should have libxml on your machine.

Todd Ditchendorf's XML Nanny performs Schema and RELAX NG valdation. Earlier this year he "open-sourced" (BSD license) the code:
http://www.ditchnet.org/wp/2008/01/11/xml-nanny-now-open-source/


Separately, please be advised that, from my experience, NSXMLParser is not SAX-like. While it is event-driven, it is not suitable for parsing streams. I use the expat parser (libexpat) to handle stream parsing.


On May 18, 2008, David wrote:


Is there a Cocoa package that supports XML schema for either event driven
(SAX like) or tree based (DOM like) XML parsing?
I haven't seen any reference to XML schema for either Cocoa packages other
than a statement saying you can do your own validation.

_______________________________________________

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


  • Prev by Date: Re: NSStream, NSInputStream, NSOutputStream
  • Next by Date: Accessing variables across classes
  • Previous by thread: Re: XML schema support
  • Next by thread: Is there an NSCollectionView selection change notification?
  • Index(es):
    • Date
    • Thread