Modified POD to include a complex description of the format of the data structure...
[dbsrgits/SQL-Translator.git] / lib / SQL / Translator / Producer / XML.pm
CommitLineData
16dc9970 1package SQL::Translator::Producer::XML;
2
3#-----------------------------------------------------
4# $Id: XML.pm,v 1.1.1.1 2002-03-01 02:26:25 kycl4rk Exp $
5#
6# File : SQL/Translator/Producer/XML.pm
7# Programmer : Ken Y. Clark, kclark@logsoft.com
8# Created : 2002/02/27
9# Purpose : XML output
10#-----------------------------------------------------
11
12use strict;
13use SQL::Translator::Producer;
14use vars qw( $VERSION );
15$VERSION = (qw$Revision: 1.1.1.1 $)[-1];
16
17use XML::Dumper;
18
19use base qw[ SQL::Translator::Producer ];
20
21sub to { 'XML' }
22
23sub translate {
24 my ( $self, $data ) = @_;
25 my $dumper = XML::Dumper->new;
26 return $dumper->pl2xml( $data );
27}
28
291;
30
31#-----------------------------------------------------
32# The eyes of fire, the nostrils of air,
33# The mouth of water, the beard of earth.
34# William Blake
35#-----------------------------------------------------
36
37=head1 NAME
38
39SQL::Translator::Producer::XML - XML output
40
41=head1 SYNOPSIS
42
43 use SQL::Translator::Producer::XML;
44
45=head1 DESCRIPTION
46
47Blah blah blah.
48
49=head1 AUTHOR
50
51Ken Y. Clark, kclark@logsoft.com
52
53=head1 SEE ALSO
54
55perl(1).
56
57=cut