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
10b81ce4
Kaydet (Commit)
10b81ce4
authored
Kas 06, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
A variety of small cleanups, including one to avoid a margin overrun in the
PDF version.
üst
59768166
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
xmlsaxhandler.tex
Doc/lib/xmlsaxhandler.tex
+15
-17
No files found.
Doc/lib/xmlsaxhandler.tex
Dosyayı görüntüle @
10b81ce4
...
...
@@ -17,32 +17,32 @@ in multiple objects. Handler implementations should inherit from the
base classes provided in the module
\module
{
xml.sax
}
, so that all
methods get default implementations.
\begin{classdesc
}
{
ContentHandler
}{
}
\begin{classdesc
*}
{
ContentHandler
}
This is the main callback interface in SAX, and the one most
important to applications. The order of events in this interface
mirrors the order of the information in the document.
\end{classdesc}
\end{classdesc
*
}
\begin{classdesc
}
{
DTDHandler
}{
}
\begin{classdesc
*}
{
DTDHandler
}
Handle DTD events.
This interface specifies only those DTD events required for basic
parsing (unparsed entities and attributes).
\end{classdesc}
\end{classdesc
*
}
\begin{classdesc
}
{
EntityResolver
}{
}
\begin{classdesc
*}
{
EntityResolver
}
Basic interface for resolving entities. If you create an object
implementing this interface, then register the object with your
Parser, the parser will call the method in your object to resolve all
external entities.
\end{classdesc}
\end{classdesc
*
}
\begin{classdesc
}
{
ErrorHandler
}{
}
\begin{classdesc
*}
{
ErrorHandler
}
Interface used by the parser to present error and warning messages
to the application. The methods of this object control whether errors
are immediately converted to exceptions or are handled in some other
way.
\end{classdesc}
\end{classdesc
*
}
In addition to these classes,
\module
{
xml.sax.handler
}
provides
symbolic constants for the feature and property names.
...
...
@@ -52,7 +52,7 @@ symbolic constants for the feature and property names.
true: Perform Namespace processing (default).
\\
false: Optionally do not perform Namespace processing
(implies namespace-prefixes).
\\
access: (parsing) read-only; (not parsing) read/write
\\
access: (parsing) read-only; (not parsing) read/write
\end{datadesc}
\begin{datadesc}
{
feature
_
namespace
_
prefixes
}
...
...
@@ -187,8 +187,7 @@ appropriate events in the input document:
The information from this event is not necessary for normal
Namespace processing: the SAX XML reader will automatically replace
prefixes for element and attribute names when the
\code
{
http://xml.org/sax/features/namespaces
}
feature is true (the
default).
\code
{
feature
_
namespaces
}
feature is enabled (the default).
%% XXX This is not really the default, is it? MvL
...
...
@@ -240,15 +239,15 @@ appropriate events in the input document:
attributes of the element.
Parsers may set the
\var
{
qname
}
parameter to
\code
{
None
}
, unless the
\code
{
http://xml.org/sax/features/namespace-prefixes
}
feature is
activated.
\code
{
feature
_
namespace
_
prefixes
}
feature is activated.
\end{methoddesc}
\begin{methoddesc}
[ContentHandler]
{
endElementNS
}{
name, qname
}
Signals the end of an element in namespace mode.
The
\var
{
name
}
parameter contains the name of the element type, just
as with the startElementNS event, likewise the
\var
{
qname
}
parameter.
as with the
\method
{
startElementNS()
}
method, likewise the
\var
{
qname
}
parameter.
\end{methoddesc}
\begin{methoddesc}
[ContentHandler]
{
characters
}{
content
}
...
...
@@ -307,9 +306,8 @@ appropriate events in the input document:
not seen the declarations (because, for example, the entity was
declared in an external DTD subset). All processors may skip
external entities, depending on the values of the
\code
{
http://xml.org/sax/features/external-general-entities
}
and the
\code
{
http://xml.org/sax/features/external-parameter-entities
}
properties.
\code
{
feature
_
external
_
ges
}
and the
\code
{
feature
_
external
_
pes
}
properties.
\end{methoddesc}
...
...
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