Get-Sxml-Item

(get-sxml-item <list> <integer>) -> list, string
(get-sxml-item <list> <symbol>) -> list, or #f

Gets the item in an SXML value found at the index referenced by integer, or the first item with the corresponding tag.

Example:

>> (get-sxml-item '(test (a . "test") (a . "foo") (b . "alpha")) 1)
:: (a . "foo")
>> (get-sxml-item '(test (a . "test") (a . "foo") (b . "alpha")) 'a)
:: (a . "test")

See Also: Indexing System, s-xml, SXML Example