#lang at-exp racket (require xml) (define xml-str @~a{ Some text here }) ;; read & parse to get an xml value (define xml (read-xml/document (open-input-string xml-str))) ;; print it out in xml form, which is identical to the input xml (write-xml xml) (newline)