2.13 (aux sxml)

Operating on SXML document trees, nodesets, etc.

2.13.1 Procedures

Procedure: sxml->text tree

Return all the text nodes in the tree as a joined string.

> (define paragraph '(para "Please " (strong "read") " carefully."))
> (sxml->text paragraph)
"Please read carefully."

tree (SXML tree or Nodeset): See SXML in the Guile manual for details about SXML trees and the SXPath section for more on the Nodeset type.

Return value (string): All text nodes as a single string.