PyDocs

Nav

Structured Markup Processing Tools

SubElement

  • SubElement(parent, tag, /, attrib={}, **extra)
Subelement factory. This function creates an element instance, and appends it to an existing element.
Changed in 3.15
  • 3.15: attrib can now be a frozendict.
  • 3.15: parent and tag are now positional-only parameters.
0 Examples
No examples for xml.etree.ElementTree/SubElement.
See Also
No see-alsos for xml.etree.ElementTree/SubElement
0 Notes
No notes for SubElement