PyDocs

Nav

Structured Markup Processing Tools

fromstring

  • fromstring(text, parser=None)
Parse XML document from string constant.

This function can be used to embed "XML Literals" in Python code.

*text* is a string containing XML data, *parser* is an
optional parser instance, defaulting to the standard XMLParser.

Returns an Element instance.
0 Examples
No examples for xml.etree.ElementTree/fromstring.
See Also
No see-alsos for xml.etree.ElementTree/fromstring
0 Notes
No notes for fromstring