XML PList emitter in Common Lisp
Common Lisp
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README
xml-plist-emitter.asd
xml-plist-emitter.lisp

README

XML PList emitter in Common Lisp

Copyright 2011 Thomas de Grivel <billitch@gmail.com>

Permission to use, copy, modify, and distribute this software for
any purpose with or without fee is hereby granted, provided that
the above copyright notice and this permission notice appear in
all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

******************************************************************

DOCUMENTATION
-------------

Source code is short enough to be its own documentation.


USAGE
-----

Here is a short usage example :


 (with-output-to-string (s)
   (xml-plist:with-xml-plist (s)
     (xml-plist:with-dict
       (xml-plist:key "all your base")
       (xml-plist:value "are belong to us")
       (xml-plist:key-value "message" "Hello world !"))
     (xml-plist:with-array
       (dotimes (i 10)
         (xml-plist:item i)))
     (xml-plist:item '("this" "is" "serialized" "into"
                       "an" "array" "of" "strings"))))


EXTENSIBILITY
-------------

You can further specialize XML-PLIST:ITEM to handle more types.

One could easily extend it using MOP to serialize any simple-object
into an XML-PList.