class_docstr: Class for formatting data in xml using Python standard library
  modules: `xml.etree.ElementTree` and `xml.dom.minidom`.
docstr: Output tree for pretty print format.
  
  This method will pretty print xml with line breaks and indentation.
docstr_tok: ["Output","tree","for","pretty","print","format",".","This","method","will","pretty","print","xml","with","line","breaks","and","indentation","."]
code: def prettify_tree(self) -> bytes:
      """
      Output tree for pretty print format.
  
      This method will pretty print xml with line breaks and indentation.
      """
  
      from xml.dom.minidom import parseString
  
      dom = parseString(self.out_xml)
  
      return dom.toprettyxml(indent="  ", encoding=self.encoding)
  
imports: from __future__ import annotations
  import codecs
  import io
  from typing import TYPE_CHECKING, Any
  from pandas._typing import CompressionOptions, FilePath, ReadBuffer, StorageOptions, WriteBuffer
  from pandas.errors import AbstractMethodError
  from pandas.util._decorators import doc
  from pandas.core.dtypes.common import is_list_like
  from pandas.core.dtypes.missing import isna
  from pandas.core.shared_docs import _shared_docs
  from pandas.io.common import get_handle
  from pandas.io.xml import get_data_from_filepath, preprocess_data
label_desc: Use image node_id 4 for calling the EtreeXMLFormatter obj's underlying member method code with example usage: obj.prettify_tree() and returns: dom