XML::RAI::TrackBack - Adds TrackBack element mappings to XML::RAI items.


XML-RAI-TrackBack documentation Contained in the XML-RAI-TrackBack distribution.

Index


Code Index:


XML-RAI-TrackBack documentation Contained in the XML-RAI-TrackBack distribution.

package XML::RAI::TrackBack;
use strict;

use vars qw( $VERSION );
$VERSION = 0.1;

sub import {

# XML::RSS::Parser already knows about the TrackBack namespace. If we were
# using a namespace not known to the parser you would need to set it here
# before creating mappings.
# XML::RSS::Parser->register_ns_prefix('trackback','http://madskills.com/public/xml/rss/module/trackback/');
    XML::RAI::Item->add_mapping(
                                'ping',
                                'trackback:ping/@rdf:resource',
                                'trackback:ping'
    );
    XML::RAI::Item->add_mapping(
                                'pinged',
                                'trackback:about/@rdf:resource',
                                'trackback:about'
    );
}

1;

__END__