diff --git a/gestionatr/cli.py b/gestionatr/cli.py index 8534b3c..7911075 100644 --- a/gestionatr/cli.py +++ b/gestionatr/cli.py @@ -127,7 +127,7 @@ def request_atr_29(url, user, password, xml_str=None, params=None): # Clean XML xml_str = xml_str.strip() xml_str = xml_str.replace("'utf-8'", "'UTF-8'") - xml_str = xml_str.replace("", "") + xml_str = re.sub(r'<\?.*\?>', '', xml_str) xml_str = xml_str.replace("""""", "") xml_str = xml_str.replace("""""", "") xml_str = xml_str.replace("<", "