XML::Output 0.03 review

Download
by rbytes.net on

XML::Output is a Perl module for writing simple XML documents. SYNOPSIS use XML::Output; open(FH,'>file.xml'); my $xo

License: GPL (GNU General Public License)
File size: 35K
Developer: Brendt Wohlberg
0 stars award from rbytes.net

XML::Output is a Perl module for writing simple XML documents.

SYNOPSIS

use XML::Output;

open(FH,'>file.xml');
my $xo = new XML::Output({'fh' => *FH});
$xo->open('tagname', {'attrname' => 'attrval'});
$xo->pcdata('element content');
$xo->close();
close(FH);

ABSTRACT

XML::Output is a Perl module for writing simple XML documents

XML::Output is a Perl module for writing simple XML document. The following methods are provided.

new
$xo = new XML::Output;
Constructs a new XML::Output object.

open
$xo->open('tagname', {'attrname' => 'attrval'});
Open an element with specified name (and optional attributes)

close
$xo->close;
Close an element

empty
$xo->empty('tagname', {'attrname' => 'attrval'});
Insert an empty element with specified name (and optional attributes)

pcdata
$xo->pcdata('element content');
Insert text

comment
$xo->comment('comment text');
Insert a comment

xmlstr
print $xo->xmlstr;
Get a string representation of the constructed document

Requirements:
Perl

XML::Output 0.03 search tags