Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
b4d6bb09
Kaydet (Commit)
b4d6bb09
authored
Eyl 21, 2000
tarafından
Lars Gustäbel
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updated to correct DocumentHandler signatures. (patch 101570)
üst
39fb28f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
+23
-6
handler.py
Lib/xml/sax/handler.py
+23
-6
No files found.
Lib/xml/sax/handler.py
Dosyayı görüntüle @
b4d6bb09
...
...
@@ -10,12 +10,15 @@ $Id$
"""
version
=
'2.0beta'
#============================================================================
#
# HANDLER INTERFACES
#
#============================================================================
# ===== ErrorHandler =====
class
ErrorHandler
:
"""Basic interface for SAX error handlers. If you create an object
that implements this interface, then register the object with your
...
...
@@ -119,20 +122,34 @@ class ContentHandler:
of endPrefixMapping events is not otherwise guaranteed."""
def
startElement
(
self
,
name
,
attrs
):
"""Signals the start of an element.
"""Signals the start of an element in non-namespace mode.
The name parameter contains the raw XML 1.0 name of the
element type as a string and the attrs parameter holds an
instance of the Attributes class containing the attributes of
the element."""
def
endElement
(
self
,
name
):
"""Signals the end of an element in non-namespace mode.
The name parameter contains the name of the element type, just
as with the startElement event."""
def
startElementNS
(
self
,
name
,
qname
,
attrs
):
"""Signals the start of an element in namespace mode.
The name parameter contains the name of the element type as a
(uri
,
localname) tuple, the qname parameter the raw XML 1.0
(uri
,
localname) tuple, the qname parameter the raw XML 1.0
name used in the source document, and the attrs parameter
holds an instance of the Attributes class containing the
attributes of the element."""
def
endElement
(
self
,
name
):
"""Signals the end of an element.
def
endElement
NS
(
self
,
name
,
qname
):
"""Signals the end of an element
in namespace mode
.
The name parameter contains the name of the element type, just
as with the startElement event."""
as with the startElement
NS
event."""
def
characters
(
self
,
content
):
"""Receive notification of character data.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment