
Protocol::Yadis::Document::Service - Protocol::Yadis::Document service object

my $s = Protocol::Yadis::Document::Service->new;
$s->attr(priority => 4);
$s->elements(
[ Protocol::Yadis::Document::Service::Element->new(
name => 'URI',
content => 'foo'
attrs => [priority => 0]
),
Protocol::Yadis::Document::Service::Element->new(
name => 'URI',
content => 'foo'
attrs => [priority => 4]
),
Protocol::Yadis::Document::Service::Element->new(
name => 'Type',
content => 'bar'
),
Protocol::Yadis::Document::Service::Element->new(
name => 'URI',
content => 'baz'
)
]
);
# <Service>
# <Type>foo</Type>
# <URI priority="0">foo</URI>
# <URI priority="4">foo</URI>
# <URI>bar</URI>
# <URI>baz</URI>
# </Service>

This is a service object for Protocol::Yadis::Document.

http_req_cb
newCreates a new Protocol::Yadis::Document::Services instance.
elementGets element by name.
TypeShortcut for getting Type element.
URIShortcut for getting URI element.
elementsGets/sets elements.
attrsGets/sets service attributes.
attrGets/sets service 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.