X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FProducer%2FXML.pm;h=18b5c6860f7a15f6b91d430b300503628c208f4d;hb=2d283c7512567f884cc034181c12f602fd0a77b4;hp=7621a62b582c53b3d5b05f60d5dfe5b41de90033;hpb=16dc997057306c2b93d146478b7b20830d3b5d80;p=dbsrgits%2FSQL-Translator.git diff --git a/lib/SQL/Translator/Producer/XML.pm b/lib/SQL/Translator/Producer/XML.pm index 7621a62..18b5c68 100644 --- a/lib/SQL/Translator/Producer/XML.pm +++ b/lib/SQL/Translator/Producer/XML.pm @@ -1,57 +1,56 @@ package SQL::Translator::Producer::XML; -#----------------------------------------------------- -# $Id: XML.pm,v 1.1.1.1 2002-03-01 02:26:25 kycl4rk Exp $ +# ------------------------------------------------------------------- +# $Id: XML.pm,v 1.16 2004-02-09 23:02:17 kycl4rk Exp $ +# ------------------------------------------------------------------- +# Copyright (C) 2002-4 SQLFairy Authors # -# File : SQL/Translator/Producer/XML.pm -# Programmer : Ken Y. Clark, kclark@logsoft.com -# Created : 2002/02/27 -# Purpose : XML output -#----------------------------------------------------- - -use strict; -use SQL::Translator::Producer; -use vars qw( $VERSION ); -$VERSION = (qw$Revision: 1.1.1.1 $)[-1]; - -use XML::Dumper; - -use base qw[ SQL::Translator::Producer ]; +# 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; version 2. +# +# 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., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA +# ------------------------------------------------------------------- -sub to { 'XML' } +=pod -sub translate { - my ( $self, $data ) = @_; - my $dumper = XML::Dumper->new; - return $dumper->pl2xml( $data ); -} +=head1 NAME -1; +SQL::Translator::Producer::XML - Alias to XML::SQLFairy producer -#----------------------------------------------------- -# The eyes of fire, the nostrils of air, -# The mouth of water, the beard of earth. -# William Blake -#----------------------------------------------------- +=head1 DESCRIPTION -=head1 NAME +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. -SQL::Translator::Producer::XML - XML output +=head1 SEE ALSO -=head1 SYNOPSIS +SQL::Translator::Producer::XML::SQLFairy. - use SQL::Translator::Producer::XML; +=head1 AUTHOR -=head1 DESCRIPTION +Ken Y. Clark Ekclark@cpan.orgE. -Blah blah blah. +=cut -=head1 AUTHOR +# ------------------------------------------------------------------- -Ken Y. Clark, kclark@logsoft.com +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; -perl(1). +*produce = \&SQL::Translator::Producer::XML::SQLFairy::produce; -=cut +1;