Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 504bc4f

Browse files
committed
Remove mentioning of Python 2.0 limitations. Fixes #607783.
1 parent d4774fb commit 504bc4f

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Doc/lib/xmldom.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ \section{\module{xml.dom} ---
4040
The Document Object Model is being defined by the W3C in stages, or
4141
``levels'' in their terminology. The Python mapping of the API is
4242
substantially based on the DOM Level 2 recommendation. Some aspects
43-
of the API will only become available in Python 2.1, or may only be
44-
available in particular DOM implementations.
43+
of the API will only become available in future Python releases, or
44+
may only be available in particular DOM implementations.
4545

4646
DOM applications typically start by parsing some XML into a DOM. How
4747
this is accomplished is not covered at all by DOM Level 1, and Level 2
48-
provides only limited improvements. There is a
48+
provides only limited improvements: There is a
4949
\class{DOMImplementation} object class which provides access to
50-
\class{Document} creation methods, but these methods were only added
51-
in DOM Level 2 and were not implemented in time for Python 2.0. There
52-
is also no well-defined way to access these methods without an
53-
existing \class{Document} object. For Python 2.0, consult the
54-
documentation for each particular DOM implementation to determine the
55-
bootstrap procedure needed to create and initialize \class{Document}
56-
and \class{DocumentType} instances.
50+
\class{Document} creation methods, but no way to access an XML
51+
reader/parser/Document builder in an implementation-independent way.
52+
There is also no well-defined way to access these methods without an
53+
existing \class{Document} object. In Python, each DOM implementation
54+
will provide a function \function{getDOMImplementation}. DOM Level 3
55+
adds a Load/Store specification, which defines an interface to the
56+
reader, but this is not implemented in Python.
5757

5858
Once you have a DOM document object, you can access the parts of your
5959
XML document through its properties and methods. These properties are

0 commit comments

Comments
 (0)