#! /usr/bin/ruby
#
# xml_ruby_update.rb
#
# May/16/2011
#
require "cgi"
require "json"
#
load '/var/www/data_base/common/ruby_common/cgi_manipulate.rb'
load '/var/www/data_base/common/ruby_common/file_io.rb'
load '/var/www/data_base/common/ruby_common/text_manipulate.rb'
load '/var/www/data_base/common/ruby_common/xml_manipulate.rb'
# ---------------------------------------------------------------------
print "Content-type: text/html\n\n"
#
print "*** xml_ruby_update.rb **** aaa
"
hhh = parse_parameter()
print "*** xml_ruby_update.rb **** bbb
"
#
xml_file = "/var/tmp/xml_file/cities.xml"
#
xml_str = read_string_proc(xml_file)
print "*** xml_ruby_update.rb **** pppp
"
dict_aa=xml_to_dict_proc(xml_str)
print "*** xml_ruby_update.rb **** qqqq
"
#
hhh.each do |unit|
print "*** bbbb ***