Hi Mark, Mark Witmer <[email protected]> writes: > I've been doing some work using the (sxml simple) module, and I'm > wondering what to do about whitespace. If I evaluate this > expression: > > (with-input-from-string > "<test> > <el>VALUE</el> > <el>VALUE</el> > </test>" (lambda () (xml->sxml))) > > I get this result: > > (*TOP* (test "\n " (el "VALUE") "\n " (el "VALUE") "\n")) > > Those "\n " strings mess up the matching I'm doing with sxml-match. Does > anyone know if there's something in the ssax modules in the standard > library that would let me create a parser that ignores insignificant > whitespace?
Andy Wingo added this feature about one week ago. It'll be in 2.0.8. In the meantime, it's in the stable-2.0 branch of the git repository. http://lists.gnu.org/archive/html/guile-devel/2013-01/msg00249.html > I decided I want to use xcb for my window manager, so I'm implementing a > language in guile that reads the xml files xcb uses to describe the X > protocol and creates bindings for it. Sounds great! Thanks for working on this :) Mark
