- sxml:content objprocedure
Retrieve the contents of an SXML element or nodeset. Any non-element nodes (attributes, processing instructions, etc) are discarded, while the elements and text nodes are returned as a list of strings and nested elements in document order. This list is empty if obj is an empty element or empty list.
The inner elements are unmodified so they still contain attributes, but also comments or other non-element nodes.
(sxml:content '(div (@ (class "content")) (*COMMENT* "main contents start here") "The document moved " (a (@ (href "/other.xml")) "here"))) => ("The document moved " (a (@ (href "/other.xml")) "here"))