XML::Writer for Perl

David Megginson’s released a Perl module for writing well-formed XML:


  use XML::Writer;

  use IO;

  my $output = new IO::File(">output.xml");

  my $writer = new XML::Writer($output);

  $writer->startTag("greeting",

                    "class" => "simple");

  $writer->characters("Hello, world!");

  $writer->endTag("greeting");

  $writer->end();

  $output->close();

Possibly Related posts (machine generated):

  1. Validation with Schematron
  2. Perl module for pinging Weblogs.com
  3. An XSLT Jumpstart for HTML Authors
  4. CGI.pm to XML Interface
  5. printf v. API

More like this: , .