sxpath - part-cw/lambdanative GitHub Wiki

(sxpath string)

Provides support for XPath, compatible with the XPath Recommendation version 1.0

Parameter Description
str Xpath specification string

Example

> ((sxpath "doc/title")
 '(*TOP*
    (doc (title "Hello world"))))
((title "Hello world"))
> ((sxpath "poem/@title/text()")
  (sxml:document "http://modis.ispras.ru/Lizorkin/XML/poem.xml"))
("The Lovesong of J. Alfred Prufrock")