(string->sxml argument) -> sxml
Attempts to convert the given string to S-XML. However, if the string does not contain xml, an error will occur.
Examples:
>> (string->sxml "<xyzzy>fooble<fibble jump='fooofoo'>feefum</fibble></xyzzy>") :: (*TOP* (xyzzy "fooble" (...)))
(The reference editor would like to thank Wes Brown for the above example, which has proven most helpful.)
>> (string->sxml "test") ERROR: sxml--expected root element (done) TRACEBACK: ([closure sxml-process]) ([closure sxml-top]) ([closure await-root]) ([closure await-root]) ([primitive error] sxml "expected root element" (done))