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 47d9987 commit e5458bdCopy full SHA for e5458bd
Doc/library/xml.etree.elementtree.rst
@@ -494,10 +494,12 @@ Functions
494
by the user.
495
496
497
-.. function:: fromstring(text)
+.. function:: fromstring(text, parser=None)
498
499
Parses an XML section from a string constant. Same as :func:`XML`. *text*
500
- is a string containing XML data. Returns an :class:`Element` instance.
+ is a string containing XML data. *parser* is an optional parser instance.
501
+ If not given, the standard :class:`XMLParser` parser is used.
502
+ Returns an :class:`Element` instance.
503
504
505
.. function:: fromstringlist(sequence, parser=None)
0 commit comments