NAME
SQL::Translator::Producer::XML::SQLFairy - SQLFairy's default XML format
SYNOPSIS
use SQL::Translator;
my $t = SQL::Translator->new(
from => 'MySQL',
to => 'XML-SQLFairy',
filename => 'schema.sql',
show_warnings => 1,
add_drop_table => 1,
);
print $t->translate;
ARGS
Takes the following extra producer args.
emit_empty_tags
Default is false, set to true to emit <foo></foo> style tags for undef values in the schema.
attrib_values
Set true to use attributes for values of the schema objects instead of tags.
<!-- attrib_values => 0 --> <table> <name>foo</name> <order>1</order> </table> <!-- attrib_values => 1 --> <table name="foo" order="1"> </table>
DESCRIPTION
Creates XML output of a schema.
AUTHORS
Ken Y. Clark <kclark@cpan.org>, Darren Chamberlain <darren@cpan.org>, Mark Addison <mark.addison@itn.co.uk>.
SEE ALSO
perl(1), SQL::Translator, SQL::Translator::Parser::XML::SQLFairy, SQL::Translator::Schema, XML::Writer.