XML.to_file

XML.to_file(prettify=False)[source]

Writes the string representation of this XML instance, including all sub-elements, to the file path in the associated XML object.

Parameters:
prettifybool, optional

If True, prettify the string representation by adding whitespace and indentation.

Returns:
None