s-Xml

Topic: S-XML

S-XML, or commonly SXML, is XML that has been converted to S-Expressions. Lib/XML handles converting XML to SXML, and working with the resultant expressions.

One important note: For some get-sxml- procedures, a <string> may be used as the argument, or as the first argument if more than one is called for. While this is acceptable, in that an error will not be returned, it is of little utility: either #f or '() (aka null) will be returned, as appropriate to the procedure. This is not noted in the documentation for each individual procedure, so note:

when given a string.

For a more detailed resource on SXML, see: http://okmij.org/ftp/Scheme/SXML.html.

See Also: get-sxml-attr, get-sxml-attrs, get-sxml-item, get-sxml-item*, get-sxml-items, make-sxml, get-sxml-tag, has-sxml-tag?, has-sxml-attr?, sxml-drill

Rather than adding an example to every entry above, it proved simpler to create a single SXML Example for several of them.