$writer->endTag("manager xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance");
####
$writer->startTag("manager xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance");
.....
....
....
$writer->endTag("manager");
$writer->end;
####
NAMESPACES
A true (1) or false (0, undef) value; if this parameter is present and its value is true, then the module will accept two-member array reference in the place of element and attribute names, as in the following example:
my $rdfns = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
my $writer = new XML::Writer(NAMESPACES => 1);
$writer->startTag([$rdfns, "Description"]);
The first member of the array is a namespace URI, and the second part is the local part of a qualified name. The module will automatically generate appropriate namespace declarations and will replace the URI part with a prefix.
####
my $rdfns = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
my $writer = new XML::Writer(OUTPUT => \$output, NAMESPACES => 1);
$writer->startTag([$rdfns, "Description"]);
$writer->startTag("greeting",
"class" => "simple");
$writer->characters("Hello, world!");
$writer->endTag("greeting");
$writer->endTag("Description");
$writer->end();
print $output;