lisp to xml conversion tools?

M

Mike Jackson

Hi,
I would need to convert a lisp type file to xml. Are there any tools
available for this purpose, before I start writing my own in perl ?

The original file format looks like this (very simplified example):

(foo "bar"
(foo1 "something"
(something "bar")
(bar "else")
)
(foo2 "something else")
(foo3 "yet another something")
)


Would you be so kind as to also reply to my email address?


Thanks!
Mike
 
A

Andy Dingley

I would need to convert a lisp type file to xml. Are there any tools
available for this purpose, before I start writing my own in perl ?

I've seen this done in DSSSL. If you're an SGML expert, you can
represent lisp syntax as SGML (SGML doesn't always have to use angle
brackets). You can then use DSSSL (which bears a similar relationship
to SGML as XSLT does to XML) to transform it.

However SGML / DSSSL experts are thin on the ground (there are only
three, and one of them keeps babbling about the Schleswig Holstein
Question).


So I'd go straight to doing it with Perl. You can either build a real
parser (lex & yacc territory) or you can do it _very_ quickly by
assuming that all input is syntactically valid lisp and doing simple
token replacements.
 
O

Oleg Dulin

Why write one in Perl when this is trivial in Lisp itself ?
If one knew enough lisp to do this, would you want to convert from it?

Only if someone paid me handsomely to make my LISP readable to them.

Oleg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top