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

Reads XML data from a port, returning an SXML representation.

Parameter Description
port Port to read data from
namespace-prefix Association list mapping user prefixes to namespaces

Example

> (ssax:xml->sxml (open-input-resource "http://modis.ispras.ru/Lizorkin/XML/poem.xml") '())
(*TOP* (*PI* xml "version='1.0'")
       (poem (@ (title "The Lovesong of J. Alfred Prufrock") (poet "T. S. Eliot"))
             (stanza (line "Let us go then, you and I,")
                     (line "When the evening is spread out against the sky")
                     (line "Like a patient etherized upon a table:"))
             (stanza (line "In the room the women come and go") (line "Talking of Michaelangelo."))))
Clone this wiki locally