diff options
author | Paul Prescod <prescod@prescod.net> | 2000-07-21 22:05:49 (GMT) |
---|---|---|
committer | Paul Prescod <prescod@prescod.net> | 2000-07-21 22:05:49 (GMT) |
commit | 623511b7df11994469b83e7ea4ed77230703fce8 (patch) | |
tree | da5e4cc21f9e8a46a81de5118ee7beec3f45fc77 /Lib/xml | |
parent | 863d8b855ff3e3f04a60c026410c11d59592f347 (diff) | |
download | cpython-623511b7df11994469b83e7ea4ed77230703fce8.zip cpython-623511b7df11994469b83e7ea4ed77230703fce8.tar.gz cpython-623511b7df11994469b83e7ea4ed77230703fce8.tar.bz2 |
Added a few docstrings
Diffstat (limited to 'Lib/xml')
-rw-r--r-- | Lib/xml/dom/minidom.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index 981e511..3f5668e 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -6,6 +6,10 @@ import types """ minidom.py -- a lightweight DOM implementation based on SAX. +parse( "foo.xml" ) + +parseString( "<foo><bar/></foo>" ) + Todo: ===== * convenience methods for getting elements and text. @@ -440,7 +444,10 @@ def _doparse( func, args, kwargs ): return rootNode def parse( *args, **kwargs ): + "Parse a file into a DOM by filename or file object" return _doparse( pulldom.parse, args, kwargs ) def parseString( *args, **kwargs ): + "Parse a file into a DOM from a string" return _doparse( pulldom.parseString, args, kwargs ) + |