summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2012-03-02 07:45:55 +0200
committerEli Bendersky <eliben@gmail.com>2012-03-02 07:45:55 +0200
commit2b65408dec44e877c63b73002fb03cef3f999f2c (patch)
tree398ed812be5fb1c6a5de7b83fdb0471c686911fe
parenta15a8d2a0c51d8f6269c843407f70df957454859 (diff)
downloadcpython-git-2b65408dec44e877c63b73002fb03cef3f999f2c.tar.gz
Issue #11379: add a note in xml.dom.minidom suggesting to use etree in some cases
-rw-r--r--Doc/library/xml.dom.minidom.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst
index 69e9e56a1f..ca19d98abb 100644
--- a/Doc/library/xml.dom.minidom.rst
+++ b/Doc/library/xml.dom.minidom.rst
@@ -18,6 +18,14 @@
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.
+
DOM applications typically start by parsing some XML into a DOM. With
:mod:`xml.dom.minidom`, this is done through the parse functions::