XML-Writer
XML-Writer
XML-Writer
XML-Writer是一種用於生成xml文檔的perl語言擴展
目錄
XML-Writer是一種用於生成xml文檔的perl語言擴展,具體用法如下:
use XML::Writer;
use IO::File;
my $output = new IO::File(">output.xml");
my $writer = new XML::Writer(OUTPUT => $output);
$writer->startTag("greeting",
"class" => "simple");
$writer->characters("Hello, world!");
$writer->endTag("greeting");
$writer->end();
$output->close();