XML::Writer

A Perl 6 module to generate XML

NAME XML::Writer - XML generation and handling

SYNOPSIS

use v6;
use XML::Writer;

my $svg = :svg[
    :width(200), :height(200),
    circle => [
        :cx(100), :cy(100), :r(50)
    ],
    text => [
        :x(10), :y(20), "hello"
    ]
];

say XML::Writer.serialize($svg);

DESCRIPTION

XML::Writer is a Perl 6 class which outputs XML from a nested data structure describing the DOM representation of an XML file.

METHODS

serialize($hierarchy)

TESTING The testing plan of SVG::Tiny seems alluring. Haven't looked closer at it, though.

BUGS Likely several. If any of them bites you, please get in touch and we'll see what we can do.

AUTHORS Carl Mäsak (masak on CPAN github #perl6, cmasak on gmail.com) significant contributions made by Daniel Schröer and Moritz Lenz.

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.