7.21 SXML

SXML is a native representation of XML in terms of standard Scheme data types: lists, symbols, and strings. For example, the simple XML fragment:

<parrot type="African Grey"><name>Alfie</name></parrot>

may be represented with the following SXML:

(parrot (@ (type "African Grey")) (name "Alfie"))

SXML is very general, and is capable of representing all of XML. Formally, this means that SXML is a conforming implementation of the XML Information Set standard.

Guile includes several facilities for working with XML and SXML: parsers, serializers, and transformers.