aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfdf.lisp
diff options
context:
space:
mode:
authorTeddy Wing2023-04-16 15:44:12 +0200
committerTeddy Wing2023-04-16 15:44:12 +0200
commit3347a25d6abc00f0cbcea893282eef949ca9b25f (patch)
treea2c8aade93424b5d47a26a506c7f78fbff593713 /src/xfdf.lisp
downloadxfdf-3347a25d6abc00f0cbcea893282eef949ca9b25f.tar.bz2
Scaffold for a library to generate XFDF XML
The library should, given a list of cons cells, generate XFDF data based on those keys and values.
Diffstat (limited to 'src/xfdf.lisp')
-rw-r--r--src/xfdf.lisp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/xfdf.lisp b/src/xfdf.lisp
new file mode 100644
index 0000000..315c63c
--- /dev/null
+++ b/src/xfdf.lisp
@@ -0,0 +1,13 @@
+(in-package :xfdf)
+
+(defun write-xfdf (output-stream fields)
+ (format output-stream "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
+<xfdf xmlns=\"http://ns.adobe.com/xfdf/\" xml:space=\"preserve\">
+ <fields>
+")
+
+ ;; TODO
+ ; (loop do)
+
+ (format output-stream " </fields>
+</xfdf>"))