File: reference-bozo.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 (18 lines) | stat: -rw-r--r-- 865 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
:py:attr:`bozo`
===============

An integer, either ``1`` or ``0``.  Set to ``1`` if the feed is not well-formed
:abbr:`XML (Extensible Markup Language)`, and ``0`` otherwise.

See :ref:`advanced.bozo` for more details on the :py:attr:`bozo` bit.

.. tip::

    :py:attr:`bozo` may not be present.  Some platforms, such as Mac OS X 10.2 and some
    versions of FreeBSD, do not include an :abbr:`XML (Extensible Markup Language)`
    parser in their :program:`Python` distributions.  :program:`Universal Feed Parser`
    will still work on these platforms, but it will not be able to detect whether a
    feed is well-formed.  However, it *can* detect whether a feed's character
    encoding is incorrectly declared.  (This is done in :program:`Python`, not by
    the :abbr:`XML (Extensible Markup Language)` parser.) See
    :ref:`advanced.encoding` for details.