maci.xmldump
dumps element or elementtree data to a file as xml
Last updated
dumps element or elementtree data to a file as xml
Last updated
Dumps or object data to a file formatted as XML. Nothing is returned. Creates a new or overwrites an existing file by default (See to change mode).
Basic Example of dumping data to a file using default positional parameters
In this example, we simply dump data to a file using the xmldump function and pass a string of the filepath to the file as the first argument to the function, then pass the data as the second argument to the function.
To learn more about building out your xml ElementTree data in code, see More information on using Element and ElementTree data: Youtube Video Search: Documentation:
Functions that are related for ElementTree
-> Loads xml data from a file as Element or ElementTree object -> Loads xml data from a string as Element object -> Dumps xml data to a string from xml etree Element object -> Returns empty xml ElementTree object to manually build xml data -> Monkey patch and defuse all stdlib packages [security use]
Describes all parameter functionality and accepted data types
Security awareness: It is important to evaluate handling XML data carefully as there are known vulnerabilities in dealing with XML data. Please refer to the official python documentation above.
Second required positional argument. Accepts or objects
This function uses the native xml library etree shipped with the python standard library for its underlying functionality. For more information on the xml.etree api, visit:
Additionally, see the provided tooling to potentially assist with vulnerabilities