Protocol::Yadis::Document::Service::Element - Protocol::Yadis::Document::Service element object


Protocol-Yadis documentation  | view source Contained in the Protocol-Yadis distribution.

Index


NAME

Top

Protocol::Yadis::Document::Service::Element - Protocol::Yadis::Document::Service element object

SYNOPSIS

Top

    my $e = Protocol::Yadis::Document::Service::Element->new;

    $e->name('Type');
    $e->attrs([a => 'b', c => 'd']);
    $e->content('foo');

    # <Type a="b" c="d">foo</Type>

DESCRIPTION

Top

This is an element object for Protocol::Yadis::Document::Service.

ATTRIBUTES

Top

name

Element name.

content

Element content.

METHODS

Top

new

Creates a new Protocol::Yadis::Document::Service::Element instance.

attrs

Sets/gets element attributes.

attr

Sets/gets element attribute.

to_string

String representation.

AUTHOR

Top

Viacheslav Tykhanovskyi, vti@cpan.org.

COPYRIGHT

Top


Protocol-Yadis documentation  | view source Contained in the Protocol-Yadis distribution.