XRI::Descriptor - Utilities for XRI Descriptor XML doc management
use XRI:Descriptor; my $XRID = XRI->new($xml_descriptor); $resolved = $XRID->getResolved; $AuthRef = $XRID->getXRIAuthorityURIs; @uris = $XRID->getLocalAccess($service, $type); $mapRef = $XRID->getMappings;
Utilities for XRI Descriptor XML doc management
This module provides utilities to pull element values from an XRI Descriptor XML file. Example XRI Descriptor XML file:
<?xml version="1.0" encoding="iso-8859-1"?> <XRIDescriptor xmlns="xri:$r*s/XRIDescriptor"> <Resolved>*user</Resolved> <XRIAuthority> <URI>http://community.broker.com/</URI> </XRIAuthority> <LocalAccess> <Service>xri:$r*a/XRIDB</Service> <URI>http://broker.com/xridb</URI> </LocalAccess> <Mapping>xri:@*:1002*(:1000:1000)</Mapping> </XRIDescriptor>
Change getLocalAccess to return an array reference
xri(3)
Fen Labalme, <fen@idcommons.net>
Copyright 2004 Identity Commons
See LICENSE.
To install XRI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XRI
CPAN shell
perl -MCPAN -e shell install XRI
For more information on module installation, please visit the detailed CPAN module installation guide.