| Protocol-Yadis documentation | view source | Contained in the Protocol-Yadis distribution. |
Protocol::Yadis::Document::Service::Element - Protocol::Yadis::Document::Service element object
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>
This is an element object for Protocol::Yadis::Document::Service.
nameElement name.
contentElement content.
newCreates a new Protocol::Yadis::Document::Service::Element instance.
attrsSets/gets element attributes.
attrSets/gets element attribute.
to_stringString representation.
Viacheslav Tykhanovskyi, vti@cpan.org.
Copyright (C) 2009, Viacheslav Tykhanovskyi.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.
| Protocol-Yadis documentation | view source | Contained in the Protocol-Yadis distribution. |