Previous: (hygguile js), Up: API
Strip all structural markup tags from an SXML layout tree, concatenating textual nodes into a plain string.
The input target SXML node or tree architecture.
(sxml->string '(div (span "Hello ") "World"))
Serialize an arbitrary SXML layout tree structure into valid XML text output format.
The node list, single element pair list, text string, or active layout generation procedure representing an SXML architecture.
The optional destination output port. Defaults to
(current-output-port).
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)