Commit e5458bdb authored by Manjusaka's avatar Manjusaka Committed by Cheryl Sabella

bpo-28235: Fix xml.etree.ElementTree.fromstring docs (GH-11903)

parent 47d99872
......@@ -494,10 +494,12 @@ Functions
by the user.
.. function:: fromstring(text)
.. function:: fromstring(text, parser=None)
Parses an XML section from a string constant. Same as :func:`XML`. *text*
is a string containing XML data. Returns an :class:`Element` instance.
is a string containing XML data. *parser* is an optional parser instance.
If not given, the standard :class:`XMLParser` parser is used.
Returns an :class:`Element` instance.
.. function:: fromstringlist(sequence, parser=None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment