2 ms·
The article mentions X-expressions for XML and HTML. If you decide to play with that, you might also want to look at another representation, SXML, which has mo
by neilv 4y ago
The article mentions X-expressions for XML and HTML. If you decide to play with that, you might also want to look at another representation, SXML, which has more advanced library support in the Racket ecosystem.
https://docs.racket-lang.org/sxml-intro/index.html https://docs.racket-lang.org/sxml-intro/index.html
(Basically, early in Scheme, there were a bunch of independently-invented representations for XML. It turned out that Oleg Kiselyov's XML parsing work, SSAX, was better than anyone else's. So I converted my libraries to be compatible with his SXML representation, and others also built tools using SXML. But core Racket (then called PLT Scheme) seemed stuck with X-expressions. Today, one of the core Racket professors maintains the Racket packaging for Oleg's SXML libraries, but it's contrib rather than core. People starting with the core docs might only hear of X-expressions, until they start searching the contributed package directory, and find those packages generally use SXML.)