| Net::EPP::Frame::ObjectSpec(3pm) | User Contributed Perl Documentation | Net::EPP::Frame::ObjectSpec(3pm) |
Net::EPP::Frame::ObjectSpec - metadata about EPP objects and extensions.
use Net::EPP::Frame;
use strict;
# create an EPP frame:
my $check = Net::EPP::Frame::Command::Check->new;
# get the spec:
my @spec = Net::EPP::Frame::ObjectSpec->spec('domain');
# create an object:
my $domain = $check->addObject(@spec);
# set the attributes:
my $name = $check->createElement('domain:name');
$name->addText('example.tld');
# assemble the frame:
$domain->appendChild($name);
$check->getCommandNode->appendChild($domain);
print $check->toString;
"Net::EPP::Frame::ObjectSpec" is a simple module designed to provide easy access to metadata for the objects and extensions defined in EPP and various extensions.
my $xmlns = Net::EPP::Frame::ObjectSpec->xmlns($type);
Returns a string containing the XML namespace URI of the thing identified by $type, or "undef" if $type is unknown.
See below for possible values of $type.
my @spec = Net::EPP::Frame::ObjectSpec->spec($type);
This function returns an array containing metadata for the given object type. If no metadata is registered then the function returns "undef".
The returned array contains three members:
@spec = (
$type,
$xmlns,
$schemaLocation, # (deprecated)
);
$type is the same as the supplied argument, while $xmlns is the XML namespace URI for the given type. The third argument is suitable for inclusion in a "schemaLocation" attribute, but is now deprecated and will be "undef" for any value of $type other than "domain", "host" "contact", "secDNS" and "rgp".
The $type argument to xmlns() and spec() identifies the object or extension desired. Possible values are:
This module is (c) 2008 - 2023 CentralNic Ltd and 2024 Gavin Brown. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| 2025-04-19 | perl v5.40.1 |