johnkeis 56906f7e8f Utilities for XML scripts to use
git-svn-id: svn://10.0.0.236/trunk@137308 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-03 03:45:53 +00:00

19 lines
300 B
Perl

package Tinderbox3::XML;
use strict;
use CGI;
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT = qw(die_xml_error);
sub die_xml_error {
my ($p, $dbh, $error) = @_;
print $p->header("text/xml");
print "<error>", $p->escapeHTML($error), "</error>\n";
$dbh->disconnect;
exit(0);
}
1