XML-Writer-Lazy

 view release on metacpan or  search on metacpan

README.pod  view on Meta::CPAN


# Allegedly passes through some kind of locator object, but appears
# to essentially be a no-op? ¯\_(ツ)_/¯
sub set_document_locator {
    my $self = shift;
    my $data = shift;
    return;
}

# No work needed, as the insides will already be magically quoted
sub start_cdata { return; }
sub end_cdata   { return; }

sub not_implemented {
    my ($event) = @_;
    return <<"MSG";
The XML passed to 'lazily()' triggered a `$event` SAX event,
but XML::Writer::Lazy doesn't yet handle those. You can either simplify your
input XML or alternatively you could monkey-patch `XML::Writer::Lazy::Handler`
to add a `$event()` handler method to it.
MSG
}

lib/XML/Writer/Lazy.pm  view on Meta::CPAN


# Allegedly passes through some kind of locator object, but appears
# to essentially be a no-op? ¯\_(ツ)_/¯
sub set_document_locator {
    my $self = shift;
    my $data = shift;
    return;
}

# No work needed, as the insides will already be magically quoted
sub start_cdata { return; }
sub end_cdata   { return; }

sub not_implemented {
    my ($event) = @_;
    return <<"MSG";
The XML passed to 'lazily()' triggered a `$event` SAX event,
but XML::Writer::Lazy doesn't yet handle those. You can either simplify your
input XML or alternatively you could monkey-patch `XML::Writer::Lazy::Handler`
to add a `$event()` handler method to it.
MSG
}



( run in 0.248 second using v1.01-cache-2.11-cpan-ec4f86ec37b )