Previous: , Up: API  


1.16 (hygguile sxml)

1.16.1 Procedures

Procedure: sxml->string sxml

Strip all structural markup tags from an SXML layout tree, concatenating textual nodes into a plain string.

sxml

The input target SXML node or tree architecture.

(sxml->string '(div (span "Hello ") "World"))
Procedure: sxml->xml tree OPT: port escape?

Serialize an arbitrary SXML layout tree structure into valid XML text output format.

tree

The node list, single element pair list, text string, or active layout generation procedure representing an SXML architecture.

port

The optional destination output port. Defaults to (current-output-port).

escape?

An optional boolean constraint indicating if nested string values undergo special character reference processing. Defaults to false.

(sxml->xml '(div (@ (class "wrapper")) "Content") (current-output-port) #t)