; ------------------------------------------------------------------- ; ; xml_update.lisp ; ; Jan/13/2014 ; ; ------------------------------------------------------------------- (require :asdf) (require :xmls) (load "/var/www/data_base/common/common_lisp/file_io.lisp") (load "/var/www/data_base/common/common_lisp/text_manipulate.lisp") (load "/var/www/data_base/common/common_lisp/xml_manipulate.lisp") ; ------------------------------------------------------------------- (format t "*** 開始 ***~%") (defvar file_xml) (setq file_xml (nth 6 (si:command-args))) (setf key_in (nth 7 (si:command-args))) (setf population_in (parse-integer (nth 8 (si:command-args)))) (format t "~a~%" file_xml) (format t "~a ~a~%" key_in population_in) ; (defvar str_xml) ; (setf str_xml (file_to_str file_xml)) ; (setf str_out (xml_update_proc str_xml key_in population_in)) (setf stream (open file_xml :direction :output :if-exists :supersede)) (format stream str_out) ; (format t "*** 終了 ***~%") ; -------------------------------------------------------------------