didi you try to do the opposite ?
Did you try to parse a fragment of xml containing a comment to see what the resulting sxml is ?
I scanned the source (http://git.savannah.gnu.org/cgit/guile.git/tree/module/sxml/simple.scm) and didn't see any specific token for comments so you'll have to do some major mods to get it in there.
You could probably expand the default element handler but it'll take some work.
@MutoShack I also checked the w3c standard (yeah...went off the deep end here) and it states "an XML processor MAY, but need not, make it possible for an application to retrieve the text of comments".
I guess they embraced the 'MAY' here :)
Thanks, again.
It's a popular choice. I found quite a few SXML implementations that decide to take the "ignore comments" route, and honestly, I don't blame them. I don't know why the standard isn't something like:
<comment>
text
</comment>
which would mean processors wouldn't have to do *extra* work to deal with them!
@drewfer
Thanks, I didn't get around to that.
It's weird though, cause comments are part of the XML standard (I'm fairly certain)! Then again, I guess Guile's implementation of SXML isn't exactly robust just yet.
Thanks for the help anyway, Drewfer!