Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is out there anything that is for s-expressions what XPATH is for XML?

I am looking for a common-lisp impl if possible. (Also, I dont want to convert sexp to XML and use xpath on the result.)

like image 992
Paralife Avatar asked Dec 04 '10 10:12

Paralife


People also ask

What is XPath expression in XML?

XPath uses path expressions to select nodes or node-sets in an XML document. These path expressions look very much like the expressions you see when you work with a traditional computer file system. XPath expressions can be used in JavaScript, Java, XML Schema, PHP, Python, C and C++, and lots of other languages.

Which of the following basic types are available in XPath expression?

In XPath, there are seven kinds of nodes: element, attribute, text, namespace, processing-instruction, comment, and document nodes.

What does 1 mean in XPath?

In GeneralThere is no standard interpretation of xpath="1" in HTML because there is no standard xpath attribute on a select element (or any other HTML element).

What is an XPath XML stands for Extensible Markup Language It is used to locate a Web element based on its XML Path None of these 1 and 2 both?

XPath (XML Path Language) is an expression language designed to support the query or transformation of XML documents. It was defined by the World Wide Web Consortium (W3C) and can be used to compute values (e.g., strings, numbers, or Boolean values) from the content of an XML document.


2 Answers

a bit late answer, but it seems http://www.cliki.net/spath is exactly what you look for.

like image 80
Jurlie Avatar answered Sep 29 '22 17:09

Jurlie


Have you looked at SSAX+SXML+SXPATH? It's Scheme rather than Common Lisp but that shouldn't hold you up for long.

like image 42
Gareth Rees Avatar answered Sep 29 '22 17:09

Gareth Rees