An open API service indexing awesome lists of open source software.

https://github.com/abo-abo/xlx

XML <-> LISP converter
https://github.com/abo-abo/xlx

lisp xml

Last synced: 3 months ago
JSON representation

XML <-> LISP converter

Awesome Lists containing this project

README

        

* Description
This is a demo of a XML->LISP->XML converter.

Generate a LISP file from a XML file:
#+begin_src sh
./xlx.lisp res/config.xml out.lisp
#+end_src

Generate a XML file from a LISP file:
#+begin_src sh
./xlx.lisp out.lisp out.xml
#+end_src

Check for diffs:
#+begin_src sh
diff -s res/config.xml out.xml
#+end_src

* Using Cookbook.py
Install pycook:
#+begin_src sh
pip install pycook
#+end_src

Install Quicklisp:
#+begin_src sh
cook install_quicklisp
#+end_src

Run the test case:
#+begin_src sh
cook run
#+end_src

* Possible Emacs integration
When visiting an XML file, ~M-x~ =xlx-mode= will:
- generate a new buffer in =lisp-mode= with the transformed contents
- overwrite the original file each time ~C-x C-s~ is done in the LISP buffer.