rest25/library/xml.sax.handler.rst => rest262/library/xml.sax.handler.rst
55   Value: ``"http://xml.org/sax/features/namespaces"`` ---  true: Perform Namespace
56   processing. ---  false: Optionally do not perform Namespace processing (implies
57   namespace-prefixes; default). ---  access: (parsing) read-only; (not parsing)
58   read/write
59
60
61.. data:: feature_namespace_prefixes
62
n63-   Value: ``"http://xml.org/sax/features/namespace-prefixes"`` ---  true: Report
n63+   Value: ``"http://xml.org/sax/features/namespace-prefixes"`` --- true: Report
64-   the original prefixed names and attributes used for Namespace declarations. ---
64+   the original prefixed names and attributes used for Namespace
65-   false: Do not report attributes used for Namespace declarations, and optionally
65+   declarations. --- false: Do not report attributes used for Namespace
66-   do not report original prefixed names (default). ---  access: (parsing) read-
66+   declarations, and optionally do not report original prefixed names
67-   only; (not parsing) read/write
67+   (default). --- access: (parsing) read-only; (not parsing) read/write
68
69
70.. data:: feature_string_interning
71
72   Value: ``"http://xml.org/sax/features/string-interning"`` ---  true: All element
73   names, prefixes, attribute names, Namespace URIs, and local names are interned
74   using the built-in intern function. ---  false: Names are not necessarily
75   interned, although they may be (default). ---  access: (parsing) read-only; (not
76   parsing) read/write
77
78
79.. data:: feature_validation
80
n81-   Value: ``"http://xml.org/sax/features/validation"`` ---  true: Report all
n81+   Value: ``"http://xml.org/sax/features/validation"`` --- true: Report all
82-   validation errors (implies external-general-entities and external-parameter-
82+   validation errors (implies external-general-entities and
83-   entities). ---  false: Do not report validation errors. ---  access: (parsing)
83+   external-parameter-entities). --- false: Do not report validation errors. ---
84-   read-only; (not parsing) read/write
84+   access: (parsing) read-only; (not parsing) read/write
85
86
87.. data:: feature_external_ges
88
89   Value: ``"http://xml.org/sax/features/external-general-entities"`` ---  true:
90   Include all external general (text) entities. ---  false: Do not include
91   external general entities. ---  access: (parsing) read-only; (not parsing)
92   read/write
202   default).
203
204   There are cases, however, when applications need to use prefixes in character
205   data or in attribute values, where they cannot safely be expanded automatically;
206   the :meth:`startPrefixMapping` and :meth:`endPrefixMapping` events supply the
207   information to the application to expand prefixes in those contexts itself, if
208   necessary.
209
n210-   .. % % XXX This is not really the default, is it? MvL
n210+   .. XXX This is not really the default, is it? MvL
211
212   Note that :meth:`startPrefixMapping` and :meth:`endPrefixMapping` events are not
213   guaranteed to be properly nested relative to each-other: all
214   :meth:`startPrefixMapping` events will occur before the corresponding
215   :meth:`startElement` event, and all :meth:`endPrefixMapping` events will occur
216   after the corresponding :meth:`endElement` event, but their order is not
217   guaranteed.
218
227
228
229.. method:: ContentHandler.startElement(name, attrs)
230
231   Signals the start of an element in non-namespace mode.
232
233   The *name* parameter contains the raw XML 1.0 name of the element type as a
234   string and the *attrs* parameter holds an object of the :class:`Attributes`
n235-   interface (XXX reference: attributes-objects.html) containing the attributes of
n235+   interface (see :ref:`attributes-objects`) containing the attributes of
236   the element.  The object passed as *attrs* may be re-used by the parser; holding
237   on to a reference to it is not a reliable way to keep a copy of the attributes.
238   To keep a copy of the attributes, use the :meth:`copy` method of the *attrs*
239   object.
240
241
242.. method:: ContentHandler.endElement(name)
243
249
250.. method:: ContentHandler.startElementNS(name, qname, attrs)
251
252   Signals the start of an element in namespace mode.
253
254   The *name* parameter contains the name of the element type as a ``(uri,
255   localname)`` tuple, the *qname* parameter contains the raw XML 1.0 name used in
256   the source document, and the *attrs* parameter holds an instance of the
t257-   :class:`AttributesNS` interface (XXX reference: attributes-ns-objects.html)
t257+   :class:`AttributesNS` interface (see :ref:`attributes-ns-objects`)
258   containing the attributes of the element.  If no namespace is associated with
259   the element, the *uri* component of *name* will be ``None``.  The object passed
260   as *attrs* may be re-used by the parser; holding on to a reference to it is not
261   a reliable way to keep a copy of the attributes.  To keep a copy of the
262   attributes, use the :meth:`copy` method of the *attrs* object.
263
264   Parsers may set the *qname* parameter to ``None``, unless the
265   ``feature_namespace_prefixes`` feature is activated.
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op