rest25/library/xml.sax.reader.rst => rest262/library/xml.sax.reader.rst
65
66   An :class:`InputSource` belongs to the application, the :class:`XMLReader` is
67   not allowed to modify :class:`InputSource` objects passed to it from the
68   application, although it may make copies and modify those.
69
70
71.. class:: AttributesImpl(attrs)
72
n73-   This is an implementation of the :class:`Attributes` interface (XXX reference:
n73+   This is an implementation of the :class:`Attributes` interface (see section
74-   attributes-objects.html) (see section :ref:`attributes-objects`).  This is a
74+   :ref:`attributes-objects`).  This is a dictionary-like object which
75-   dictionary-like object which represents the element attributes in a
75+   represents the element attributes in a :meth:`startElement` call. In addition
76-   :meth:`startElement` call. In addition to the most useful dictionary operations,
76+   to the most useful dictionary operations, it supports a number of other
77-   it supports a number of other methods as described by the interface. Objects of
77+   methods as described by the interface. Objects of this class should be
78-   this class should be instantiated by readers; *attrs* must be a dictionary-like
78+   instantiated by readers; *attrs* must be a dictionary-like object containing
79-   object containing a mapping from attribute names to attribute values.
79+   a mapping from attribute names to attribute values.
80
81
82.. class:: AttributesNSImpl(attrs, qnames)
83
84   Namespace-aware variant of :class:`AttributesImpl`, which will be passed to
85   :meth:`startElementNS`. It is derived from :class:`AttributesImpl`, but
n86-   understands attribute names as two-tuples of *namespaceURI* and *localname*. In
n86+   understands attribute names as two-tuples of *namespaceURI* and
87-   addition, it provides a number of methods expecting qualified names as they
87+   *localname*. In addition, it provides a number of methods expecting qualified
88-   appear in the original document.  This class implements the
88+   names as they appear in the original document.  This class implements the
89-   :class:`AttributesNS` interface (XXX reference: attributes-ns-objects.html) (see
89+   :class:`AttributesNS` interface (see section :ref:`attributes-ns-objects`).
90-   section :ref:`attributes-ns-objects`).
91
92
93.. _xmlreader-objects:
94
95XMLReader Objects
96-----------------
97
98The :class:`XMLReader` interface supports the following methods:
284
285.. method:: InputSource.getEncoding()
286
287   Get the character encoding of this InputSource.
288
289
290.. method:: InputSource.setByteStream(bytefile)
291
n292-   Set the byte stream (a Python file-like object which does not perform byte-to-
n291+   Set the byte stream (a Python file-like object which does not perform
293-   character conversion) for this input source.
292+   byte-to-character conversion) for this input source.
294
295   The SAX parser will ignore this if there is also a character stream specified,
296   but it will use a byte stream in preference to opening a URI connection itself.
297
298   If the application knows the character encoding of the byte stream, it should
299   set it with the setEncoding method.
300
301
345
346   Returns the type of the attribute *name*, which is normally ``'CDATA'``.
347
348
349.. method:: Attributes.getValue(name)
350
351   Return the value of attribute *name*.
352
n353-.. % getValueByQName, getNameByQName, getQNameByName, getQNames available
n352+.. getValueByQName, getNameByQName, getQNameByName, getQNames available
354-.. % here already, but documented only for derived class.
353+.. here already, but documented only for derived class.
355
356
357.. _attributes-ns-objects:
358
359The :class:`AttributesNS` Interface
360-----------------------------------
361
t362-This interface is a subtype of the :class:`Attributes` interface (XXX reference:
t361+This interface is a subtype of the :class:`Attributes` interface (see section
363-attributes-objects.html) (see section :ref:`attributes-objects`).  All methods
362+:ref:`attributes-objects`).  All methods supported by that interface are also
364-supported by that interface are also available on :class:`AttributesNS` objects.
363+available on :class:`AttributesNS` objects.
365
366The following methods are also available:
367
368
369.. method:: AttributesNS.getValueByQName(name)
370
371   Return the value for a qualified name.
372
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op