Next: , Previous: sxml fold, Up: Top


30 (sxml simple)

30.1 Overview

A simple interface to XML parsing and serialization.

30.2 Usage

— Function: xml->sxml [port = (current-input-port)]

Use SSAX to parse an XML document into SXML. Takes one optional argument, port, which defaults to the current input port.

— Function: sxml->xml tree [port = (current-output-port)]

Serialize the sxml tree tree as XML. The output will be written to the current output port, unless the optional argument port is present.

— Function: sxml->string sxml

Detag an sxml tree sxml into a string. Does not perform any formatting.

— Variable: universal-sxslt-rules

A set of pre-post-order rules that transform any SXML tree into a form suitable for XML serialization by (sxml transform)'s SRV:send-reply. Used internally by sxml->xml.