https://github.com/abo-abo/xlx
XML <-> LISP converter
https://github.com/abo-abo/xlx
lisp xml
Last synced: about 1 year ago
JSON representation
XML <-> LISP converter
- Host: GitHub
- URL: https://github.com/abo-abo/xlx
- Owner: abo-abo
- Created: 2018-01-26T18:01:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-26T18:09:35.000Z (over 8 years ago)
- Last Synced: 2025-03-09T05:52:35.360Z (over 1 year ago)
- Topics: lisp, xml
- Language: Common Lisp
- Size: 17.6 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
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.