summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-01-22 20:49:46 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-01-22 20:49:46 (GMT)
commit564e4d8dc9b918b5efaada336ab3bf595176d175 (patch)
tree10aa4040d2d44c6f8e0a3b9a0e0e3ef73c3cd636
parenta3bdce8c914c38f985fc70589488d0d01019250b (diff)
parentda4b5b82a3b2ec27f9112cc0338a3b20f502b892 (diff)
downloadcpython-564e4d8dc9b918b5efaada336ab3bf595176d175.zip
cpython-564e4d8dc9b918b5efaada336ab3bf595176d175.tar.gz
cpython-564e4d8dc9b918b5efaada336ab3bf595176d175.tar.bz2
#11379: merge with 3.2.
-rw-r--r--Doc/library/xml.dom.minidom.rst22
-rw-r--r--Lib/xml/dom/minidom.py5
2 files changed, 11 insertions, 16 deletions
diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst
index a5c6fb2..a75325f 100644
--- a/Doc/library/xml.dom.minidom.rst
+++ b/Doc/library/xml.dom.minidom.rst
@@ -1,8 +1,8 @@
-:mod:`xml.dom.minidom` --- Lightweight DOM implementation
-=========================================================
+:mod:`xml.dom.minidom` --- Minimal DOM implementation
+=====================================================
.. module:: xml.dom.minidom
- :synopsis: Lightweight Document Object Model (DOM) implementation.
+ :synopsis: Minimal Document Object Model (DOM) implementation.
.. moduleauthor:: Paul Prescod <paul@prescod.net>
.. sectionauthor:: Paul Prescod <paul@prescod.net>
.. sectionauthor:: Martin v. Löwis <martin@v.loewis.de>
@@ -11,17 +11,11 @@
--------------
-:mod:`xml.dom.minidom` is a light-weight implementation of the Document Object
-Model interface. It is intended to be simpler than the full DOM and also
-significantly smaller.
-
-.. note::
-
- The :mod:`xml.dom.minidom` module provides an implementation of the W3C-DOM,
- with an API similar to that in other programming languages. Users who are
- unfamiliar with the W3C-DOM interface or who would like to write less code
- for processing XML files should consider using the
- :mod:`xml.etree.ElementTree` module instead.
+:mod:`xml.dom.minidom` is a minimal implementation of the Document Object
+Model interface, with an API similar to that in other languages. It is intended
+to be simpler than the full DOM and also significantly smaller. Users who are
+not already proficient with the DOM should consider using the
+:mod:`xml.etree.ElementTree` module for their XML processing instead
DOM applications typically start by parsing some XML into a DOM. With
:mod:`xml.dom.minidom`, this is done through the parse functions::
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py
index 28e5030..55c4ce1 100644
--- a/Lib/xml/dom/minidom.py
+++ b/Lib/xml/dom/minidom.py
@@ -1,5 +1,6 @@
-"""\
-minidom.py -- a lightweight DOM implementation.
+"""Simple implementation of the Level 1 DOM.
+
+Namespaces and other minor Level 2 features are also supported.
parse("foo.xml")