Вячеслав Тихановский > Protocol-Yadis > Protocol::Yadis::Document

Download:
Protocol-Yadis-1.00.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Protocol::Yadis::Document - Protocol::Yadis document object

SYNOPSIS ^

    my $d = Protocol::Yadis::Document->parse(<<EOD);
        <?xml version="1.0" encoding="UTF-8"?>
        <xrds:XRDS xmlns:xrds="xri://$xrds" xmlns="xri://$xrd*($v*2.0)">
         <XRD>
          <Service>
           <Type> http://lid.netmesh.org/sso/2.0 </Type>
          </Service>
          <Service>
           <Type> http://lid.netmesh.org/sso/1.0 </Type>
          </Service>
         </XRD>
        </xrds:XRDS>

    my $services = $d->services;

DESCRIPTION ^

This is a document object for Protocol::Yadis.

METHODS ^

new

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

services

Returns discovered Yadis services.

parse

Parses XML document.

to_string

String representation.

AUTHOR ^

Viacheslav Tykhanovskyi, vti@cpan.org.

COPYRIGHT ^

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.

syntax highlighting: