#!/usr/bin/perl
#------------------------------------------------------------------------------
# Copyright (C) 2001 Thomax Kaulmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


use XSQL;

$t = "INSERT INTO template VALUES (1,'search_head','<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 1.0 Transitional//EN\" \"http://www.w3.org\r\n/TR/xhtml1/DTD/html1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/html\" lang=\"en-US\" xml:lang=\"en-US\">\r\n<head>\r\n\r\n<title>\r\n</title>\r\n\r\n</head>\r\n<body>\r\n\r\n<p>\r\n<form action=\"/oma-bin/usearch\" method=\"post\">\r\nOMA - Open Meta Archive --- Search: <input type=\"text\" name=\"qstring\" size=\"16\" value=\"OLDVALUE\"></input>\r\n</form>\r\n</p>\r\n')";


XSQL::transopen();
XSQL::transact($t,@names);
$r = XSQL::transclose();
print $r;
print "\n\n\n\n----------------------------------------------\n\n\n\n";
$r = XSQL::parsexml($r);
print $r;

