The SKYRiX Libraries for XML Processing (skyrix-xml) contain:

  • a SAX2 Implementation for Objective-C
  • SaxObjC driver bundles for:
  • 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.

    Download Sources

  • opengroupware.org-xml-latest.tar.gz
  • via FTP (GNUstep): skyrix-xml-200301141726.tgz

  • Graffle Overviews

  • SaxObjC Classes
  • DOM Classes
  • XmlRpc Classes

  • Tutorials / Examples

  • rss2plist1 - writing a "raw" SAX handler
  • rss2plist2 - writing a SAX handler using SaxMethodCallHandler
  • rssparse - parsing/mapping XML files using SaxObjectDecoder

  • Requirements

    To build skyrix-xml you need:

  • a Foundation library (MacOSX, libFoundation or gstep-base)
  • libxml2
  • libical for processing of iCalendar/vCard files
  • expat for trying the Expat SAX driver

  • FAQ

    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 skyrix-xml in conjunction with libFoundation you need to link your program against EOControl from skyrix-core. Skyrix-xml uses -takeValue:forKey: which is not implemented in libFoundation (but part of Foundation on both, gstep-base and Cocoa).

    Building with gstep-make

    # tar zxf opengroupware.org-xml-xxx.tgz
    # cd opengroupware.org-xml
    # make -s debug=yes install

    Building on MacOSX

    On MacOSX just open the SxXML.pbproj and build the "all" target. The OSX build process isn't very clean yet, maybe you find user-dependend install locations (did not get that right yet ...).

    Note: you don't need to have libxml2 anymore for parsing XML (the CoreFoundation parser will be used). But if you want to parse HTML, be sure that you have libxml2 installed, we provide a source package containing a PBX for building libxml2 in our ThirdParty section.

    Links
  • SAX
  • libxml2
  • libical
  • expat