| 1 | package XML::RAI::TrackBack; | ||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 1 | ▶ | use vars qw( $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | $VERSION = 0.1; | |
| 6 | |||
| 7 | 1 | ▶ | sub import { |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | # XML::RSS::Parser already knows about the TrackBack namespace. If we were | ||
| 10 | # using a namespace not known to the parser you would need to set it here | ||
| 11 | # before creating mappings. | ||
| 12 | # XML::RSS::Parser->register_ns_prefix('trackback','http://madskills.com/public/xml/rss/module/trackback/'); | ||
| 13 | 1 | XML::RAI::Item->add_mapping( | |
| 14 | 'ping', | ||
| 15 | 'trackback:ping/@rdf:resource', | ||
| 16 | 'trackback:ping' | ||
| 17 | ); | ||
| 18 | 1 | XML::RAI::Item->add_mapping( | |
| 19 | 'pinged', | ||
| 20 | 'trackback:about/@rdf:resource', | ||
| 21 | 'trackback:about' | ||
| 22 | ); | ||
| 23 | } | ||
| 24 | |||
| 25 | 1 | 1; | |
| 26 | |||
| 27 | __END__ | ||