XML-GSA
view release on metacpan or search on metacpan
lib/XML/GSA/Group.pm view on Meta::CPAN
#adds record content part
sub _record_content {
my ( $self, $record ) = @_;
return unless $self->writer && $record->{'content'};
if ( $record->{'mimetype'} eq 'text/plain' ) {
$self->writer->dataElement( 'content', $record->{'content'} );
}
elsif ( $record->{'mimetype'} eq 'text/html' ) {
$self->writer->cdataElement( 'content', $record->{'content'} );
}
#else {
#TODO support other mimetype with base64 encoding content
#}
}
#creates record attributes
sub _record_attributes {
my ( $self, $record, $feed ) = @_;
( run in 0.722 second using v1.01-cache-2.11-cpan-454fe037f31 )