Skip to content
Chris Petersen edited this page Oct 16, 2015 · 2 revisions

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")
Clone this wiki locally