@@ -72,12 +72,15 @@ for the feature and property names.
7272 optionally do not report original prefixed names (default).
7373 | access: (parsing) read-only; (not parsing) read/write
7474
75+ The parser based on :mod: `xml.parsers.expat ` does not support this feature.
76+
7577
7678.. data :: feature_string_interning
7779
7880 | value: ``"http://xml.org/sax/features/string-interning"``
7981 | true: All element names, prefixes, attribute names, Namespace URIs, and
80- local names are interned using the built-in intern function.
82+ local names are interned in a dictionary
83+ (see :data:`property_interning_dict`).
8184 | false: Names are not necessarily interned, although they may be (default).
8285 | access: (parsing) read-only; (not parsing) read/write
8386
@@ -90,6 +93,9 @@ for the feature and property names.
9093 | false: Do not report validation errors.
9194 | access: (parsing) read-only; (not parsing) read/write
9295
96+ The parser based on :mod: `xml.parsers.expat ` does not support this feature,
97+ because Expat is a non-validating parser.
98+
9399
94100.. data :: feature_external_ges
95101
@@ -116,6 +122,8 @@ for the feature and property names.
116122 DTD subset.
117123 | access: (parsing) read-only; (not parsing) read/write
118124
125+ The parser based on :mod: `xml.parsers.expat ` does not support this feature.
126+
119127
120128.. data :: all_features
121129
@@ -125,7 +133,7 @@ for the feature and property names.
125133.. data :: property_lexical_handler
126134
127135 | value: ``"http://xml.org/sax/properties/lexical-handler"``
128- | data type: xml.sax.handler.LexicalHandler (not supported in Python 2)
136+ | data type: :class:`~ xml.sax.handler.LexicalHandler`
129137 | description: An optional extension handler for lexical events like
130138 comments.
131139 | access: read/write
@@ -134,28 +142,54 @@ for the feature and property names.
134142.. data :: property_declaration_handler
135143
136144 | value: ``"http://xml.org/sax/properties/declaration-handler"``
137- | data type: xml.sax.sax2lib.DeclHandler (not supported in Python 2)
145+ | data type: an object implementing the SAX2 ``DeclHandler`` interface
138146 | description: An optional extension handler for DTD-related events other
139147 than notations and unparsed entities.
140148 | access: read/write
141149
150+ No parser in the standard library supports this property,
151+ and the standard library provides no such handler.
152+
142153
143154.. data :: property_dom_node
144155
145156 | value: ``"http://xml.org/sax/properties/dom-node"``
146- | data type: org.w3c. dom.Node (not supported in Python 2)
157+ | data type: :class:`xml. dom.Node`
147158 | description: When parsing, the current DOM node being visited if this is
148159 a DOM iterator; when not parsing, the root DOM node for iteration.
149160 | access: (parsing) read-only; (not parsing) read/write
150161
162+ No parser in the standard library supports this property.
163+
151164
152165.. data :: property_xml_string
153166
154167 | value: ``"http://xml.org/sax/properties/xml-string"``
155168 | data type: Bytes
156169 | description: The literal string of characters that was the source for the
157170 current event.
158- | access: read-only
171+ | access: read-only, and only during a handler callback
172+
173+
174+ .. data :: property_encoding
175+
176+ | value: ``"http://www.python.org/sax/properties/encoding"``
177+ | data type: String
178+ | description: The name of the encoding to assume for input data.
179+ | access: read/write
180+
181+ No parser in the standard library supports this property.
182+
183+
184+ .. data :: property_interning_dict
185+
186+ | value: ``"http://www.python.org/sax/properties/interning-dict"``
187+ | data type: Dictionary
188+ | description: The dictionary used to intern names,
189+ or ``None`` if names are not interned.
190+ Setting it enables interning, as does the
191+ :data:`feature_string_interning` feature.
192+ | access: read/write
159193
160194
161195.. data :: all_properties
0 commit comments