We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7121a6e commit b046f1bCopy full SHA for b046f1b
Doc/library/xml.etree.elementtree.rst
@@ -490,10 +490,12 @@ Functions
490
*elem* is an element tree or an individual element.
491
492
493
-.. function:: fromstring(text)
+.. function:: fromstring(text, parser=None)
494
495
Parses an XML section from a string constant. Same as :func:`XML`. *text*
496
- is a string containing XML data. Returns an :class:`Element` instance.
+ is a string containing XML data. *parser* is an optional parser instance.
497
+ If not given, the standard :class:`XMLParser` parser is used.
498
+ Returns an :class:`Element` instance.
499
500
501
.. function:: fromstringlist(sequence, parser=None)
0 commit comments