SimplePie 1.3.1 is now available. Upgrade now!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation » Frequently Asked Questions » Supported XML Namespaces

Supported XML Namespaces

SimplePie 1.0 introduces four new methods for getting data from ANY element or attribute in the feed: get_channel_tags(), get_feed_tags(), get_image_tags(), and get_item_tags().

These are the methods that SimplePie uses internally, and they rely on the use of namespace URLs to find these elements. Because a number of these namespace URLs are used frequently by SimplePie, we've set up the following constants to make namespace stuff simpler. If you want to gain access to a namespaced element that isn't on this list, you can manually type (or copy-paste) the namespace URL.

Constant Namespace URL
SIMPLEPIE_NAMESPACE_XML http://www.w3.org/XML/1998/namespace
SIMPLEPIE_NAMESPACE_ATOM_10 http://www.w3.org/2005/Atom
SIMPLEPIE_NAMESPACE_ATOM_03 http://purl.org/atom/ns#
SIMPLEPIE_NAMESPACE_RDF http://www.w3.org/1999/02/22-rdf-syntax-ns#
SIMPLEPIE_NAMESPACE_RSS_090 http://my.netscape.com/rdf/simple/0.9/
SIMPLEPIE_NAMESPACE_RSS_10 http://purl.org/rss/1.0/
SIMPLEPIE_NAMESPACE_RSS_10_MODULES_CONTENT http://purl.org/rss/1.0/modules/content/
SIMPLEPIE_NAMESPACE_RSS_20 (Blank. RSS 2.0 doesn't have a namespace.*)
SIMPLEPIE_NAMESPACE_DC_10 http://purl.org/dc/elements/1.0/
SIMPLEPIE_NAMESPACE_DC_11 http://purl.org/dc/elements/1.1/
SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO http://www.w3.org/2003/01/geo/wgs84_pos#
SIMPLEPIE_NAMESPACE_GEORSS http://www.georss.org/georss
SIMPLEPIE_NAMESPACE_MEDIARSS http://search.yahoo.com/mrss/ Note
SIMPLEPIE_NAMESPACE_MEDIARSS_WRONG http://search.yahoo.com/mrss Note
SIMPLEPIE_NAMESPACE_ITUNES http://www.itunes.com/dtds/podcast-1.0.dtd
SIMPLEPIE_NAMESPACE_XHTML http://www.w3.org/1999/xhtml

* Available in SimplePie 1.1.2 and later. Available in trunk and 1.1.x branch builds from r972.


faq/supported_xml_namespaces.txt · Last modified: 2011/03/05 19:56 (external edit)