CaRP: Caching RSS Parser - Documentation
CaRP Interactive FAQ
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates
CarpMapPrefix( [Prefix in feed [, CaRP's prefix]] );
Set up a mapping between the namespace prefix used in a feed and the namespace prefix expected by CaRP, or remove all prefix mappingsEvolution | LE | Koi | SE |
>=3.6.2 | n/a | >=3.6.2 | n/a |
Most RSS feeds use the same namespace prefixes for their elements: RSS elements have no namespace prefix, Dublin Core elements use "dc", etc. In order for CaRP to process feeds that use unusual namespace prefixes, CaRP needs to know what prefixes the feed is using. This function enables you to specify that.
If both arguments are left blank, this function resets CaRP's prefix mapping. This is useful when displaying multiple feeds which use different prefixes on the same page.
Arguments:
- Prefix in feed: The unusual prefix used by the feed. This value is not case sensitive.
- CaRP's prefix: The prefix used by CaRP. Leave this blank for no prefix.
Return value: none
Usage Example:
<?php require_once '/home/geckotribe/carp/carp.php'; CarpMapPrefix('rss',''); CarpCacheShow('http://www.us-cert.gov/current/index.rdf'); CarpMapPrefix(); CarpCacheShow('http://www.geckotribe.com/press/rss/pr.rss'); ?>