Hi, 
I'm a new user on newLISP and I would like to know how to save the result of an xml-parse on an xml file to an lsp file.
Best Regards.
			
			
			
				That's fairly easy to do in newLISP: //http://www.newlisp.org/downloads/newlisp_manual.html#save.  Happy hacking!
			
			
			
				hi, 
thanks rickyboy for your answer, i already tried the function save :
(save "output.lsp" xml-parse (read-file "input.xml"))
am i doing it wrong ?
			
			
			
				Yes. :)  No worries though.  The most important thing to rememeber about using 
newLISP v.10.4.5 on OSX IPv4/6 UTF-8 libffi, execute 'newlisp -h' for more info.
> (setf stuff (xml-parse "<stuff><a>42</a><b>hello</b><c>more</c></stuff>"))
(("ELEMENT" "stuff" () (("ELEMENT" "a" () (("TEXT" "42"))) ("ELEMENT" "b" () (("TEXT" 
      "hello"))) 
   ("ELEMENT" "c" () (("TEXT" "more"))))))
> (save "stuff.lsp" 'stuff)
true
Now go look at the contents of stuff.lsp.  You should see a 
And as Lutz noted in 
newLISP v.10.4.5 on OSX IPv4/6 UTF-8 libffi, execute 'newlisp -h' for more info.
> (load "stuff.lsp")
(("ELEMENT" "stuff" () (("ELEMENT" "a" () (("TEXT" "42"))) ("ELEMENT" "b" () (("TEXT" 
      "hello"))) 
   ("ELEMENT" "c" () (("TEXT" "more"))))))
> ;;
> ;; It's really loaded and referenced by the symbol `stuff'.  Check it out:
> ;;
> stuff
(("ELEMENT" "stuff" () (("ELEMENT" "a" () (("TEXT" "42"))) ("ELEMENT" "b" () (("TEXT" 
      "hello"))) 
   ("ELEMENT" "c" () (("TEXT" "more"))))))
Pretty cool, eh?
			
			
			
				perfect , i corrected the syntaxe and it is working now. 
> (save "example.lsp" 'mysymbol)
true
Thanks so much, have a nice day,