Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
(let* ((doc (dom:create-document 'rune-dom:implementation nil nil nil))
|
||||
(root (dom:create-element doc "root"))
|
||||
(element (dom:create-element doc "element"))
|
||||
(text (dom:create-text-node doc "Some text here")))
|
||||
(dom:append-child element text)
|
||||
(dom:append-child root element)
|
||||
(dom:append-child doc root)
|
||||
(dom:map-document (cxml:make-rod-sink) doc))
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
(let ((doc (dom:create-document 'rune-dom:implementation nil nil nil)))
|
||||
(dom:append-child
|
||||
(dom:append-child
|
||||
(dom:append-child doc (dom:create-element doc "root"))
|
||||
(dom:create-element doc "element"))
|
||||
(dom:create-text-node doc "Some text here"))
|
||||
(write-string (dom:map-document (cxml:make-rod-sink) doc)))
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
(defun append-child* (parent &rest children)
|
||||
(reduce 'dom:append-child children :initial-value parent))
|
||||
|
||||
(let* ((doc (dom:create-document 'rune-dom:implementation nil nil nil)))
|
||||
(append-child* doc
|
||||
(dom:create-element doc "root")
|
||||
(dom:create-element doc "element")
|
||||
(dom:create-text-node doc "Some text here"))
|
||||
(write-string (dom:map-document (cxml:make-rod-sink) doc)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue