docstamp/xml_utils.py
def change_xml_encoding(filepath, src_enc, dst_enc='utf-8'):
    """ Modify the encoding entry in the XML file.

    Parameters
    ----------
    filepath: str
        Path to the file to be modified.

    src_enc: str
        Encoding that is written in the file

    dst_enc: str
        Encoding to be set in the file.
    """
    enc_attr = "encoding='{}'"
    replace_file_content(filepath, enc_attr.format(src_enc), enc_attr.format(dst_enc), 1)
def change_xml_encoding(filepath, src_enc, dst_enc='utf-8'):
    enc_attr = "encoding='{}'"
    replace_file_content(filepath, enc_attr.format(src_enc), enc_attr.format(dst_enc), 1)
def change_xml_encoding ( filepath , src_enc , dst_enc = 'utf-8' ) : enc_attr = "encoding='{}'" replace_file_content ( filepath , enc_attr . format ( src_enc ) , enc_attr . format ( dst_enc ) , 1 )
Modify the encoding entry in the XML file.

    Parameters
    ----------
    filepath: str
        Path to the file to be modified.

    src_enc: str
        Encoding that is written in the file

    dst_enc: str
        Encoding to be set in the file.
Modify the encoding entry in the XML file .