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
46479d37
Kaydet (Commit)
46479d37
authored
Agu 11, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some minor clarifications and added some index entries.
üst
3ac977e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
libxmllib.tex
Doc/lib/libxmllib.tex
+22
-20
No files found.
Doc/lib/libxmllib.tex
Dosyayı görüntüle @
46479d37
...
@@ -101,27 +101,28 @@ passed to \method{handle_xml()} default to \code{None} and the string
...
@@ -101,27 +101,28 @@ passed to \method{handle_xml()} default to \code{None} and the string
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
{
handle
_
doctype
}{
tag, pubid, syslit, data
}
\begin{methoddesc}
{
handle
_
doctype
}{
tag, pubid, syslit, data
}
This method is called when the
\samp
{
<!DOCTYPE...>
}
tag is processed.
This
\index
{
DOCTYPE declaration
}
method is called when the
The arguments are the name of the root element, the Formal Public
\samp
{
<!DOCTYPE...>
}
declaration is processed. The arguments are the
Identifier (or
\code
{
None
}
if not specified), the system identifier,
tag name of the root element, the Formal Public
\index
{
Formal Public
and the uninterpreted contents of the internal DTD subset as a string
Identifier
}
Identifier (or
\code
{
None
}
if not specified), the system
(or
\code
{
None
}
if not present).
identifier, and the uninterpreted contents of the internal DTD subset
as a string (or
\code
{
None
}
if not present).
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
{
handle
_
starttag
}{
tag, method, attributes
}
\begin{methoddesc}
{
handle
_
starttag
}{
tag, method, attributes
}
This method is called to handle start tags for which a start tag
This method is called to handle start tags for which a start tag
handler is defined in the instance variable
\member
{
elements
}
. The
handler is defined in the instance variable
\member
{
elements
}
. The
\var
{
tag
}
argument is the name of the tag, and the
\var
{
method
}
\var
{
tag
}
argument is the name of the tag, and the
argument is the function (method) which should be used to support semantic
\var
{
method
}
argument is the function (method) which should be used to
interpretation of the start tag. The
\var
{
attributes
}
argument is a
support semantic interpretation of the start tag. The
dictionary of attributes, the key being the
\var
{
name
}
and the value
\var
{
attributes
}
argument is a dictionary of attributes, the key being
being the
\var
{
value
}
of the attribute found inside the tag's
the
\var
{
name
}
and the value being the
\var
{
value
}
of the attribute
\code
{
<>
}
brackets. Character and entity references in the
found inside the tag's
\code
{
<>
}
brackets. Character and entity
\var
{
value
}
have been interpreted. For instance, for the start tag
references in the
\var
{
value
}
have been interpreted. For instance,
\code
{
<A HREF="http://www.cwi.nl/">
}
, this method would be called as
for the start tag
\code
{
<A HREF="http://www.cwi.nl/">
}
, this method
\code
{
handle
_
starttag('A', self.elements['A'][0],
\{
'HREF': 'http://www.cwi.nl/'
\}
)
}
.
would be called as
\code
{
handle
_
starttag('A', self.elements['A'][0],
The base implementation simply calls
\var
{
method
}
with
\var
{
attributes
}
\{
'HREF': 'http://www.cwi.nl/'
\}
)
}
. The base implementation simply
as the only argument.
calls
\var
{
method
}
with
\var
{
attributes
}
as the only argument.
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
{
handle
_
endtag
}{
tag, method
}
\begin{methoddesc}
{
handle
_
endtag
}{
tag, method
}
...
@@ -187,10 +188,11 @@ does nothing. Note that if a document starts with \samp{<?xml
...
@@ -187,10 +188,11 @@ does nothing. Note that if a document starts with \samp{<?xml
This method is called when a declaration is encountered. The
This method is called when a declaration is encountered. The
\var
{
data
}
argument is a string containing the text between the
\var
{
data
}
argument is a string containing the text between the
\samp
{
<!
}
and
\samp
{
>
}
delimiters, but not the delimiters
\samp
{
<!
}
and
\samp
{
>
}
delimiters, but not the delimiters
themselves. For example, the entity
\samp
{
<!ENTITY text>
}
will
themselves. For example, the
\index
{
ENTITY declaration
}
entity
cause this method to be called with the argument
\code
{
'ENTITY text'
}
. The
declaration
\samp
{
<!ENTITY text>
}
will cause this method to be called
default method does nothing. Note that
\samp
{
<!DOCTYPE ...>
}
is
with the argument
\code
{
'ENTITY text'
}
. The default method does
handled separately if it is located at the start of the document.
nothing. Note that
\samp
{
<!DOCTYPE ...>
}
is handled separately if it
is located at the start of the document.
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
{
syntax
_
error
}{
message
}
\begin{methoddesc}
{
syntax
_
error
}{
message
}
...
...
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