Next: (hygguile version), 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).
Whether text is written as character references instead of literal characters. It follows the tree to any depth, through nested elements and nodelists alike. Attribute values are always escaped, so they ignore this argument. Defaults to false.
(sxml->xml '(div (@ (class "wrapper")) "Content") (current-output-port) #t)