SimplePie 1.5 is now available!

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

This is an old revision of the document!


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_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_ITUNES http://www.itunes.com/dtds/podcast-1.0.dtd
SIMPLEPIE_NAMESPACE_XHTML http://www.w3.org/1999/xhtml

faq/supported_xml_namespaces.1188244043.txt.gz · Last modified: 2011/03/06 03:56 (external edit)