Net-BEEP-Lite
view release on metacpan or search on metacpan
lib/Net/BEEP/Lite/MgmtProfile.pm view on Meta::CPAN
$start_el->setAttribute("number", $number);
$start_el->setAttribute("serverName", $servername) if $servername;
my $profile_el = XML::LibXML::Element->new("profile");
$profile_el->setAttribute('uri', $uri);
$start_el->appendChild($profile_el);
# FIXME: should be able to pass in a Node or string as data.
if ($data) {
if (!ref($data)) {
my $cdata = XML::LibXML::CDATASection->new($data);
$profile_el->appendChild($cdata);
} elsif ($data->isa('XML::LibXML::CDATASection')) {
$profile_el->appendChild($data);
}
$profile_el->setAttribute("encoding", "base64") if $encoding;
}
my $msg = $self->_new_mgmt_message(Type => 'MSG',
Content => $start_el->toString());
$msg;
}
( run in 0.267 second using v1.01-cache-2.11-cpan-454fe037f31 )