masak/xml-writer/lib/XML/Writer

xml-writer src

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

(head2) 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.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: