Skip to content
Chris Petersen edited this page Oct 16, 2015 · 1 revision

Invokes the HTML parser (HtmlPrag) to parse HTML data into SXML.

Parameter Description
port Port to read data from

Example

> (html->sxml (open-input-resource "http://modis.ispras.ru/Lizorkin/XML/amorphis.html"))
(*TOP* (html (head (title "Amorphis lyrics"))
             (body (h2 "To Fathers Cabin")
                   "(Lyrics: trad., Music: Holopainen, Laine)"
                   (p "O old man, good god" (br)
                      "careful man of heaven" (br)
                      "keeper of storm clouds" (br)
                      "make misty weather" (br)
                      "and create a tiny cloud" (br)
                      "in whose shelter I may go"))))
Clone this wiki locally