-
-
10 Feb 2021 19:11:37 UTC
- Distribution: XML-Loy
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (64 / 1 / 1)
- Kwalitee
Bus factor: 1- 88.91% Coverage
- License: perl_5
- Perl: v5.10.1
- Activity
24 month- Tools
- Download (53.85KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- List::Util
- Mojolicious
- Scalar::Util
- Socket
- Test::More
- Test::Warn
- Time::Local
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
XML::Loy::HostMeta - HostMeta Extension for XRD
SYNOPSIS
use XML::Loy::XRD; my $xrd = XML::Loy::XRD->new; $xrd->extension(-HostMeta); $xrd->subject('http://sojolicious.example/'); $xrd->host('sojolicious.example'); print $xrd->to_pretty_xml; # <?xml version="1.0" encoding="UTF-8" standalone="yes"?> # <XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0" # xmlns:hm="http://host-meta.net/xrd/1.0" # xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> # <Subject>http://sojolicious.example/</Subject> # <hm:Host>sojolicious.example</hm:Host> # </XRD>
DESCRIPTION
XML::Loy::HostMeta is an extension to XML::Loy::XRD and provides addititional functionality for the work with HostMeta documents.
METHODS
XML::Loy::HostMeta inherits all methods from XML::Loy and implements the following new ones.
host
$xrd->host('sojolicious.example'); print $xrd->host;
Sets or returns host information of the xrd. The support of this element was removed from the specification in draft
09
.DEPENDENCIES
AVAILABILITY
https://github.com/Akron/XML-Loy
COPYRIGHT AND LICENSE
Copyright (C) 2011-2021, Nils Diewald.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl.
Module Install Instructions
To install XML::Loy, copy and paste the appropriate command in to your terminal.
cpanm XML::Loy
perl -MCPAN -e shell install XML::Loy
For more information on module installation, please visit the detailed CPAN module installation guide.