请输入您要查询的百科知识:

 

词条 XML-Writer
释义

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();

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2024/12/23 17:21:34