On Wed, 22 Dec 2010 15:13:58 -0500
Neil Van Dyke <[email protected]> wrote:


> 
> Note that, in practice, you will mix these SXML tools with low-level 
> list-processing tools.  For a simple example, in the example above I 
> used "cadr" as a convenient way to get the first (and only) top-level 
> SXML element.
> 

Thanks a lot for showing me sxml. The example is really helpful to
get a glimpse about the working of sxml-match.

Combining Jay's hint of using xpath I found that this is also possible
using sxpath:

(car ((sxpath "doc/author/@id/text()") sxml))




-- 
Manfred


_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to