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
bd34b6bc
Kaydet (Commit)
bd34b6bc
authored
Kas 30, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added the convenience constants that are present in PyXML to make these
more similar.
üst
b3be216b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
xmldom.tex
Doc/lib/xmldom.tex
+35
-0
__init__.py
Lib/xml/dom/__init__.py
+6
-0
No files found.
Doc/lib/xmldom.tex
Dosyayı görüntüle @
bd34b6bc
...
...
@@ -112,6 +112,40 @@ raise an \exception{ImportError}. The features list must be a sequence of
(feature, version) pairs which are passed to hasFeature.
\end{funcdesc}
Some convenience constants are also provided:
\begin{datadesc}
{
EMPTY
_
NAMESPACE
}
The value used to indicate that no namespace is associated with a
node in the DOM. This is typically found as the
\member
{
namespaceURI
}
of a node, or used as the
\var
{
namespaceURI
}
parameter to a namespaces-specific method.
\versionadded
{
2.2
}
\end{datadesc}
\begin{datadesc}
{
XML
_
NAMESPACE
}
The namespace URI associated with the reserved prefix
\code
{
xml
}
, as
defined by
\citetitle
[http://www.w3.org/TR/REC-xml-names/]
{
Namespaces in XML
}
(section~4).
\versionadded
{
2.2
}
\end{datadesc}
\begin{datadesc}
{
XMLNS
_
NAMESPACE
}
The namespace URI for namespace declarations, as defined by
\citetitle
[http://www.w3.org/TR/DOM-Level-2-Core/core.html]
{
Document
Object Model (DOM) Level 2 Core Specification
}
(section~1.1.8).
\versionadded
{
2.2
}
\end{datadesc}
\begin{datadesc}
{
XHTML
_
NAMESPACE
}
The URI of the XHTML namespace as defined by
\citetitle
[http://www.w3.org/TR/xhtml1/]
{
XHTML 1.0: The Extensible
HyperText Markup Language
}
(section~3.1.1).
\versionadded
{
2.2
}
\end{datadesc}
% Should the Node documentation go here?
In addition,
\module
{
xml.dom
}
contains a base
\class
{
Node
}
class and
...
...
@@ -124,6 +158,7 @@ concrete \class{Node} objects; they are located within the class
rather than at the module level to conform with the DOM
specifications.
\subsection
{
Objects in the DOM
\label
{
dom-objects
}}
The definitive documentation for the DOM is the DOM specification from
...
...
Lib/xml/dom/__init__.py
Dosyayı görüntüle @
bd34b6bc
...
...
@@ -116,4 +116,10 @@ class NamespaceErr(DOMException):
class
InvalidAccessErr
(
DOMException
):
code
=
INVALID_ACCESS_ERR
XML_NAMESPACE
=
"http://www.w3.org/XML/1998/namespace"
XMLNS_NAMESPACE
=
"http://www.w3.org/2000/xmlns/"
XHTML_NAMESPACE
=
"http://www.w3.org/1999/xhtml"
EMPTY_NAMESPACE
=
None
from
domreg
import
getDOMImplementation
,
registerDOMImplementation
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