X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FProducer%2FXML.pm;h=309b5977dc72bb86f3068d1b39ee97a48b5b972f;hb=b03926cdac036bdbcf69e478ca29e1121c814646;hp=07767e9e2098738e78ca148c264ee7c5de0bfdbf;hpb=d529894ef96e6c243cecd566e1b6b6d3325b8127;p=dbsrgits%2FSQL-Translator.git diff --git a/lib/SQL/Translator/Producer/XML.pm b/lib/SQL/Translator/Producer/XML.pm index 07767e9..309b597 100644 --- a/lib/SQL/Translator/Producer/XML.pm +++ b/lib/SQL/Translator/Producer/XML.pm @@ -1,10 +1,7 @@ package SQL::Translator::Producer::XML; # ------------------------------------------------------------------- -# $Id: XML.pm,v 1.3 2002-11-22 03:03:40 kycl4rk Exp $ -# ------------------------------------------------------------------- -# Copyright (C) 2002 Ken Y. Clark , -# darren chamberlain +# Copyright (C) 2002-2009 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 @@ -21,48 +18,37 @@ package SQL::Translator::Producer::XML; # 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 Ekclark@cpan.orgE. -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 Ekclark@cpan.orgE +use strict; +use vars qw[ $VERSION $DEBUG ]; +$VERSION = '1.99'; +$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;