[racket] xml processing question

From: Manfred Lotz (manfred.lotz at arcor.de)
Date: Wed Dec 22 13:44:08 EST 2010

Hi there, 
I'd like to know how to idiomatically handle xml using racket's xml. 

Let's assume a minimal example like this:

(define xmlin "
  <name>Some software</name>
  <more licence='gpl' checked='2010-12-10'/>
  <ref id='someref'/>
  <author id='John Doe'/>

(define xe (string->xexpr xmlin))
(define xe (xml->xexpr (document-element (read-xml (open-input-string

Now my question is, how would I retrieve the contents of the xml

Do I have to work thru the xexpr by myself or are there some
predefined procedures available which I perhaps didn't recognize when
looking at the documentation?


Posted on the users mailing list.