<p>I need to create XML in Perl.  From what I read, <a href="http://search.cpan.org/dist/XML-LibXML" rel="noreferrer">XML::LibXML</a> is great for parsing and using XML that comes from somewhere else.  Does anyone have any suggestions for an XML Writer?  Is <a href="http://search.cpan.org/dist/XML-Writer" rel="noreferrer">XML::Writer</a> still maintained?  Does anyone like/use it?</p>

<p>In addition to feature-completeness, I am interested an easy-to-use syntax, so please describe the syntax and any other reasons why you like that module in your answer.</p>

<p>Please respond with one suggestion per answer, and if someone has already answered with your favorite, please vote that answer up.  Hopefully it will be easy to see what is most popular.</p>

<p>Thanks!</p>

XML::Writer is still maintained (at least, as of February of this year), and it's indeed one of the favorite Perl XML writers out there.
As for describing the syntax, one is better to look at the module's documentation (the link is already in the question).  To wit:
```
```
use XML::Writer;

my $writer = new XML::Writer();  # will write to stdout
$writer->startTag("greeting", 
                  "class" => "simple");
$writer->characters("Hello, world!");
$writer->endTag("greeting");
$writer->end();

# produces <greeting class='simple'>Hello world!</greeting>
```
```