File: reference-namespaces.rst

package info (click to toggle)
feedparser 6.0.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,540 kB
  • sloc: xml: 11,459; python: 4,575; makefile: 7
file content (19 lines) | stat: -rw-r--r-- 594 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.. _reference.namespaces:

:py:attr:`namespaces`
=====================

A dictionary of all :abbr:`XML (Extensible Markup Language)` namespaces defined
in the feed, as ``{prefix: namespaceURI}``.

.. note::

    The prefixes listed in the :py:attr:`namespaces` dictionary may not match the
    prefixes defined in the original feed.  See :ref:`advanced.namespaces` for more
    details.

.. tip::

    This element always exists, although it may be an empty dictionary if the feed
    does not define any namespaces (such as an :abbr:`RSS (Rich Site Summary)` 2.0
    feed with no extensions).