[racket] Reading large XML files

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Mon Oct 14 14:47:44 EDT 2013

Konrad Hinsen wrote at 10/14/2013 01:47 PM:
> Thanks to both of you! I had spotted sxml on Planet, but the
> description didn't suggest that it's an XML parser, much less a good
> one. I installed the package and put some documentation on my
> e-book reader.

The name ``SXML'' is a bit confusing.

What happened is that, a long time ago, Oleg Kiselyov defined an XML 
representation, called SXML.  He also wrote a series of Scheme code and 
papers on tools that used SXML, including his XML parser (called SSAX), 
and an XPath implementation (called SXPath).  A few different people 
(including myself) packaged Oleg's SXML-related Scheme code for Racket, 
different ways, but generally dumping all of Oleg's stuff into one big 
package.

As my own SXML-related tools have evolved, I've adopted my own project 
to tweak SXML slightly (e.g., add easier character entities for manually 
writing HTML in SXML, other HTML conveniences), and am temporarily 
calling this SXML variant ``xexp'', to try to avoid further confusing 
what is meant by ``SXML''.  (A lot more time has been wasted on failed 
experimental changes to SXML, before realizing that SXML either got it 
right in the first place or there was insufficient reason to change, so 
few differences remain between SXML and xexp.)  
http://www.neilvandyke.org/racket-xexp/

Neil V.


Posted on the users mailing list.