I've been poking around for a decent XML/HTML handling library the last couple of days. First I came across Apple's CoreFoundation CFXML service libraries over here, but it seems like all of Apple's internal XML handling is done procedural style.
Lots and lots of snippets that look like this:
CFXMLNodeRef CFXMLNodeCreate (
CFAllocatorRef alloc,
CFXMLNodeTypeCode xmlType,
CFStringRef dataString,
const void *additionalInfoPtr,
CFIndex version
);
It hurts my head.
Then I stumbled over the libxml2 library from GNOME which happens to be precompiled for OSX by Zveno.
It's not horrendous - but it's still C and it hurts my pathetically simple brain.
Then there's the GNUStep project which has a GSXML library that wraps libxml2 albeit with some caveats - but I think it should be good enough.
I had to fudge around with the source files, but I've gotten the code to compile - whether or not it works is another question.
Grab the source here: http://homepage.mac.com/vng1 in the SourceCode section. You'll find a GSXML tarball.
License is the all powerful, all viral GPL2. :-)
If it doesn't work - or if it does work - give me a shout. Maybe those GNUStep folks will merge the code.
1:05:32 PM
|