-
Notifications
You must be signed in to change notification settings - Fork 7
Description
When running report_ftk_extents.py, if there is a character encoding error in the xml being transformed, lxml (a dependency for the script throughs a syntax error. Tried to run report_ftk_extents.py with an xml file that had a character encoding issue and received the following error:
Traceback (most recent call last):
File "/mnt/c/Users/foren/Documents/report_ftk_extents.py", line 271, in
main()
File "/mnt/c/Users/foren/Documents/report_ftk_extents.py", line 256, in main
tree = etree.parse(args.file)
File "src/lxml/etree.pyx", line 3541, in lxml.etree.parse
File "src/lxml/parser.pxi", line 1879, in lxml.etree._parseDocument
File "src/lxml/parser.pxi", line 1905, in lxml.etree._parseDocumentFromURL
File "src/lxml/parser.pxi", line 1808, in lxml.etree._parseDocFromFile
File "src/lxml/parser.pxi", line 1180, in lxml.etree._BaseParser._parseDocFromFile
File "src/lxml/parser.pxi", line 618, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 728, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 657, in lxml.etree._raiseParseError
File "/mnt/f/FTKsettings/extents_reports/M24575report/Report.xml", line 72
lxml.etree.XMLSyntaxError: PCDATA invalid Char value 31, line 72, column 9527