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

Skip to content

Commit 2029344

Browse files
committed
Issue #11379: add a note in xml.dom.minidom suggesting to use etree in some cases
1 parent bbe2f60 commit 2029344

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Doc/library/xml.dom.minidom.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
Model interface. It is intended to be simpler than the full DOM and also
1616
significantly smaller.
1717

18+
.. note::
19+
20+
The :mod:`xml.dom.minidom` module provides an implementation of the W3C-DOM,
21+
with an API similar to that in other programming languages. Users who are
22+
unfamiliar with the W3C-DOM interface or who would like to write less code
23+
for processing XML files should consider using the
24+
:mod:`xml.etree.ElementTree` module instead.
25+
1826
DOM applications typically start by parsing some XML into a DOM. With
1927
:mod:`xml.dom.minidom`, this is done through the parse functions::
2028

0 commit comments

Comments
 (0)