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
c020e7f8
Kaydet (Commit)
c020e7f8
authored
Agu 25, 2013
tarafından
Eli Bendersky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge doc fix from 3.3
üst
74eba65f
bf8ab77f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
xml.etree.elementtree.rst
Doc/library/xml.etree.elementtree.rst
+8
-8
No files found.
Doc/library/xml.etree.elementtree.rst
Dosyayı görüntüle @
c020e7f8
...
...
@@ -983,8 +983,8 @@ XMLParser Objects
.. method:: close()
Finishes feeding data to the parser. Returns the result of calling the
:meth:`~TreeBuilder.close` method of the *target* passed during
construction; by default,
this is the toplevel document element.
``close()`` method of the *target* passed during construction; by default,
this is the toplevel document element.
.. method:: doctype(name, pubid, system)
...
...
@@ -998,12 +998,12 @@ XMLParser Objects
Feeds data to the parser. *data* is encoded data.
:meth:`XMLParser.feed` calls *target*\'s :meth:`start
` method
for each opening tag, its :meth:`end
` method for each closing tag,
and data is processed by method :meth:`data
`. :meth:`XMLParser.close`
calls *target*\'s method :meth:`close
`.
:class:`XMLParser` can be used not only for building a tree structure.
This is an example of counting the maximum depth of an XML file::
:meth:`XMLParser.feed` calls *target*\'s ``start()`
` method
for each opening tag, its ``end()`
` method for each closing tag,
and data is processed by method ``data()`
`. :meth:`XMLParser.close`
calls *target*\'s method ``close()`
`.
:class:`XMLParser` can be used not only for building a tree structure.
This is an example of counting the maximum depth of an XML file::
>>> from xml.etree.ElementTree import XMLParser
>>> class MaxDepth: # The target object of the parser
...
...
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