The SOPE Libraries for XML Processing (sope-xml) contain:
a SAX2
Implementation for Objective-CSaxObjC driver bundles for:
- CoreFoundation XML (XML)
- libxml2 (HTML and XML)
- Structured Text (stx, thanks to Extrapola :-)
- libical
(iCalendar, vCard)
- VersitSaxDriver (iCalendar, vCard) - thanks to Max Berger
- expat
(XML, untested)
- plists (plist, untested)
- pyx (pyx, untested)
an attempt to implement DOM on top
of SaxObjC
an XML-RPC implementation
(without a transport layer)
The libraries are released under the
GNU Lesser General Public License.
SaxObjC ClassesDOM ClassesXmlRpc Classes
rss2plist1
- writing a "raw" SAX handlerrss2plist2
- writing a SAX handler using SaxMethodCallHandlerrssparse
- parsing/mapping XML files using SaxObjectDecoder
To build sope-xml you need:
a Foundation library (MacOSX, libFoundation or gstep-base)libxml2libical for processing of iCalendar/vCard filesexpat for trying the Expat SAX driver
Q: If I try to use SaxObjectDecoder my program dumps core (OpenBSD)
or complains about -takeValue:forKey: not being found!
A: In case you use sope-xml in conjunction with libFoundation you
need to link your program against EOControl from sope-core. Sope-xml
uses -takeValue:forKey: which is not implemented in libFoundation (but part
of Foundation on both, gstep-base and Cocoa).
SAXlibxml2libicalexpat