[plt-scheme] reading HTML as XML

From: Prabhakar Ragde (plragde at uwaterloo.ca)
Date: Fri Dec 12 11:05:28 EST 2008

Matthew Flatt wrote:

> I've run into this before. The `read-html'as-xml' function produces a
> list of content values, and `xml->xexpr' wants a single content value.
> So, you probably want to `map xml->xexr'. (I'm not sure why
> `xml->xexpr' doesn't complain when it's given a list.)

That works, thanks. I would never have thought to try it. --PR


Posted on the users mailing list.