package SQL::Translator::Producer::XML;
# -------------------------------------------------------------------
-# $Id: XML.pm,v 1.3 2002-11-22 03:03:40 kycl4rk Exp $
+# $Id: XML.pm,v 1.16 2004-02-09 23:02:17 kycl4rk Exp $
# -------------------------------------------------------------------
-# Copyright (C) 2002 Ken Y. Clark <kclark@cpan.org>,
-# darren chamberlain <darren@cpan.org>
+# Copyright (C) 2002-4 SQLFairy Authors
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# 02111-1307 USA
# -------------------------------------------------------------------
-=head1 NAME
-
-SQL::Translator::Producer::XML - XML output
+=pod
-=head1 SYNOPSIS
+=head1 NAME
- use SQL::Translator::Producer::XML;
+SQL::Translator::Producer::XML - Alias to XML::SQLFairy producer
=head1 DESCRIPTION
-Meant to create some sort of usable XML output.
+Previous versions of SQL::Translator included an XML producer, but the
+namespace has since been further subdivided. Therefore, this module is
+now just just an alias to the XML::SQLFairy producer.
-=cut
+=head1 SEE ALSO
-use strict;
-use vars qw( $VERSION );
-$VERSION = sprintf "%d.%02d", q$Revision: 1.3 $ =~ /(\d+)\.(\d+)/;
+SQL::Translator::Producer::XML::SQLFairy.
-use XML::Dumper;
+=head1 AUTHOR
-sub produce {
- my ( $self, $data ) = @_;
- my $dumper = XML::Dumper->new;
- return $dumper->pl2xml( $data );
-}
+Ken Y. Clark E<lt>kclark@cpan.orgE<gt>.
-1;
+=cut
# -------------------------------------------------------------------
-# The eyes of fire, the nostrils of air,
-# The mouth of water, the beard of earth.
-# William Blake
-# -------------------------------------------------------------------
-
-=pod
-
-=head1 AUTHOR
-Ken Y. Clark E<lt>kclark@cpan.orgE<gt>
+use strict;
+use vars qw[ $VERSION $DEBUG ];
+$VERSION = sprintf "%d.%02d", q$Revision: 1.16 $ =~ /(\d+)\.(\d+)/;
+$DEBUG = 1 unless defined $DEBUG;
-=head1 SEE ALSO
+use SQL::Translator::Producer::XML::SQLFairy;
-XML::Dumper;
+*produce = \&SQL::Translator::Producer::XML::SQLFairy::produce;
-=cut
+1;