Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/XML-DOM-serialization/Racket/xml-dom-serialization.rkt
Normal file
16
Task/XML-DOM-serialization/Racket/xml-dom-serialization.rkt
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#lang at-exp racket
|
||||
(require xml)
|
||||
|
||||
(define xml-str
|
||||
@~a{<?xml version="1.0" ?>
|
||||
<root>
|
||||
<element>
|
||||
Some text here
|
||||
</element>
|
||||
</root>})
|
||||
|
||||
;; 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue