• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:name +full:- +full:only

1 :mod:`xml.sax.handler` --- Base classes for SAX handlers
12 --------------
16 only need to implement those interfaces whose events they are interested in;
33 This interface specifies only those DTD events required for basic parsing
65 namespace-prefixes; default).
66 | access: (parsing) read-only; (not parsing) read/write
71 | value: ``"http://xml.org/sax/features/namespace-prefixes"``
76 | access: (parsing) read-only; (not parsing) read/write
81 | value: ``"http://xml.org/sax/features/string-interning"``
83 local names are interned using the built-in intern function.
85 | access: (parsing) read-only; (not parsing) read/write
91 | true: Report all validation errors (implies external-general-entities and
92 external-parameter-entities).
94 | access: (parsing) read-only; (not parsing) read/write
99 | value: ``"http://xml.org/sax/features/external-general-entities"``
102 | access: (parsing) read-only; (not parsing) read/write
107 | value: ``"http://xml.org/sax/features/external-parameter-entities"``
112 | access: (parsing) read-only; (not parsing) read/write
122 | value: ``"http://xml.org/sax/properties/lexical-handler"``
131 | value: ``"http://xml.org/sax/properties/declaration-handler"``
133 | description: An optional extension handler for DTD-related events other
140 | value: ``"http://xml.org/sax/properties/dom-node"``
144 | access: (parsing) read-only; (not parsing) read/write
149 | value: ``"http://xml.org/sax/properties/xml-string"``
153 | access: read-only
161 .. _content-handler-objects:
164 ----------------------
182 document-related event, even if the parser is not reporting an error. Typically,
188 Note that the locator will return correct information only during the invocation
197 The SAX parser will invoke this method only once, before any other methods in
205 The SAX parser will invoke this method only once, and it will be the last method
213 Begin the scope of a prefix-URI Namespace mapping.
229 guaranteed to be properly nested relative to each-other: all
238 End the scope of a prefix-URI mapping.
245 .. method:: ContentHandler.startElement(name, attrs)
247 Signals the start of an element in non-namespace mode.
249 The *name* parameter contains the raw XML 1.0 name of the element type as a
252 interface (see :ref:`attributes-objects`) containing the attributes of
253 the element. The object passed as *attrs* may be re-used by the parser; holding
259 .. method:: ContentHandler.endElement(name)
261 Signals the end of an element in non-namespace mode.
263 The *name* parameter contains the name of the element type, just as with the
267 .. method:: ContentHandler.startElementNS(name, qname, attrs)
271 The *name* parameter contains the name of the element type as a ``(uri,
272 localname)`` tuple, the *qname* parameter contains the raw XML 1.0 name used in
275 :ref:`attributes-ns-objects`)
277 the element, the *uri* component of *name* will be ``None``. The object passed
278 as *attrs* may be re-used by the parser; holding on to a reference to it is not
286 .. method:: ContentHandler.endElementNS(name, qname)
290 The *name* parameter contains the name of the element type, just as with the
310 used a more Java-like interface for this method. Since most parsers used from
321 whitespace (see the W3C XML 1.0 recommendation, section 2.10): non-validating
343 .. method:: ContentHandler.skippedEntity(name)
347 The Parser will invoke this method once for each entity skipped. Non-validating
354 .. _dtd-handler-objects:
357 ------------------
362 .. method:: DTDHandler.notationDecl(name, publicId, systemId)
367 .. method:: DTDHandler.unparsedEntityDecl(name, publicId, systemId, ndata)
372 .. _entity-resolver-objects:
375 ----------------------
385 .. _sax-error-handler:
388 --------------------
397 only parameter. Errors and warnings may be converted to an exception by raising
398 the passed-in exception object.
423 .. _lexical-handler-objects:
426 ----------------------
437 ``'http://xml.org/sax/properties/lexical-handler'``.
445 .. method:: LexicalHandler.startDTD(name, public_id, system_id)