Lines Matching +full:- +full:- +full:name +full:- +full:only
1 :mod:`xml.sax.handler` --- Base classes for SAX handlers
12 --------------
15 error handlers, and entity resolvers. Applications normally only need to
33 This interface specifies only those DTD events required for basic parsing
59 namespace-prefixes; default).
60 | access: (parsing) read-only; (not parsing) read/write
65 | value: ``"http://xml.org/sax/features/namespace-prefixes"``
70 | access: (parsing) read-only; (not parsing) read/write
75 | value: ``"http://xml.org/sax/features/string-interning"``
77 local names are interned using the built-in intern function.
79 | access: (parsing) read-only; (not parsing) read/write
85 | true: Report all validation errors (implies external-general-entities and
86 external-parameter-entities).
88 | access: (parsing) read-only; (not parsing) read/write
93 | value: ``"http://xml.org/sax/features/external-general-entities"``
96 | access: (parsing) read-only; (not parsing) read/write
101 | value: ``"http://xml.org/sax/features/external-parameter-entities"``
106 | access: (parsing) read-only; (not parsing) read/write
116 | value: ``"http://xml.org/sax/properties/lexical-handler"``
125 | value: ``"http://xml.org/sax/properties/declaration-handler"``
127 | description: An optional extension handler for DTD-related events other
134 | value: ``"http://xml.org/sax/properties/dom-node"``
138 | access: (parsing) read-only; (not parsing) read/write
143 | value: ``"http://xml.org/sax/properties/xml-string"``
147 | access: read-only
155 .. _content-handler-objects:
158 ----------------------
176 document-related event, even if the parser is not reporting an error. Typically,
182 Note that the locator will return correct information only during the invocation
191 The SAX parser will invoke this method only once, before any other methods in
199 The SAX parser will invoke this method only once, and it will be the last method
207 Begin the scope of a prefix-URI Namespace mapping.
223 guaranteed to be properly nested relative to each-other: all
232 End the scope of a prefix-URI mapping.
239 .. method:: ContentHandler.startElement(name, attrs)
241 Signals the start of an element in non-namespace mode.
243 The *name* parameter contains the raw XML 1.0 name of the element type as a
246 interface (see :ref:`attributes-objects`) containing the attributes of
247 the element. The object passed as *attrs* may be re-used by the parser; holding
253 .. method:: ContentHandler.endElement(name)
255 Signals the end of an element in non-namespace mode.
257 The *name* parameter contains the name of the element type, just as with the
261 .. method:: ContentHandler.startElementNS(name, qname, attrs)
265 The *name* parameter contains the name of the element type as a ``(uri,
266 localname)`` tuple, the *qname* parameter contains the raw XML 1.0 name used in
269 :ref:`attributes-ns-objects`)
271 the element, the *uri* component of *name* will be ``None``. The object passed
272 as *attrs* may be re-used by the parser; holding on to a reference to it is not
280 .. method:: ContentHandler.endElementNS(name, qname)
284 The *name* parameter contains the name of the element type, just as with the
304 used a more Java-like interface for this method. Since most parsers used from
315 whitespace (see the W3C XML 1.0 recommendation, section 2.10): non-validating
337 .. method:: ContentHandler.skippedEntity(name)
341 The Parser will invoke this method once for each entity skipped. Non-validating
348 .. _dtd-handler-objects:
351 ------------------
356 .. method:: DTDHandler.notationDecl(name, publicId, systemId)
361 .. method:: DTDHandler.unparsedEntityDecl(name, publicId, systemId, ndata)
366 .. _entity-resolver-objects:
369 ----------------------
379 .. _sax-error-handler:
382 --------------------
391 only parameter. Errors and warnings may be converted to an exception by raising
392 the passed-in exception object.