NAME

XML::Generator - Perl extension for generating XML

SYNOPSIS

  use XML::Generator;
  
  my $x = new XML::Generator;
  print $x->foo($x->bar({baz=>3}, $x->bam()),
		$x->bar("Hey there,\n", "world"));
  __END__
  # The above would yield:
  <foo><bar baz="3"><bam/></bar><bar>Hey there,
world</bar></foo>

DESCRIPTION

XML::Generator is an extremely simple module to help in the generation of XML. It has no support for entities currently. Basically, you create an XML::Generator object and then call a method for each tag, supplying the contents of that tag as parameters. You can use a hash ref as the first parameter if the tag should include atributes. The XML is returned as a string. A valid XML document must consist of a single tag at the top level, but this module does nothing to enforce that.

AUTHOR

Benjamin Holzman, bholzman@bender.com

SEE ALSO

Perl-XML FAQ

http://www.pobox.com/~eisen/xml/perl-xml-faq.html