Skip to content

Commit

Permalink
Updated the Xml_Sanitization_Mapping list
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashb72 committed Jun 19, 2024
1 parent a8fd878 commit 92d8488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xmlcli/XmlCliLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
0x07: 0x20, 0x08: 0x20, 0x0B: 0x20, 0x0C: 0x20, 0x0E: 0x20, 0x0F: 0x20, 0x10: 0x20,
0x11: 0x20, 0x12: 0x20, 0x13: 0x20, 0x14: 0x20, 0x15: 0x20, 0x16: 0x20, 0x17: 0x20,
0x18: 0x20, 0x19: 0x20, 0x1A: 0x20, 0x1B: 0x20, 0x1C: 0x20, 0x1D: 0x20, 0x1E: 0x20,
0x1F: 0x20, 0x7F: 0x20, 0xB5: 0x75, 0x26: 0x6E, 0xA0: 0x2E}
0x1F: 0x20, 0x7F: 0x20, 0xB5: 0x75, 0x26: 0x6E, 0xA0: 0x2E, 0xB0: 0x20 }

# Constants for Bitwise Knobs
BITWISE_KNOB_PREFIX = 0xC0000
Expand Down Expand Up @@ -1159,7 +1159,7 @@ def SanitizeXml(filename):
log.info('SanitizeXml(): No XML syntax errors found with source XML file.')
except:
log.info('SanitizeXml(): Fixing XML syntax errors found with source XML file.')
with open(filename, mode='r', newline='') as input_file, open(filename + '.clean', 'w') as output_file:
with open(filename, mode='r', newline='') as input_file, open(filename + '.clean', mode='w', newline='') as output_file:
for line in input_file.readlines():
cleaned_content = line.translate(Xml_Sanitization_Mapping)
output_file.write(cleaned_content)
Expand Down

0 comments on commit 92d8488

Please sign in to comment.