Nodes.add_to_etree¶
- Nodes.add_to_etree(root: xml.etree.ElementTree.Element, overwrite: bool = True)[source]¶
Add node data to xml.etree.ElementTree.Element.
- Parameters
- rootxml.etree.ElementTree.Element
Element to which ‘nodes’ will be appended to.
- overwritebool, default=True
If True, existing ‘nodes’ Element in root will be deleted. If False, node data will be appended to the existing data.