Problem
When reading XML files version 2.x
<?xml version="2.0.2"..
the ETL flow generates an exception:
SAXParseException; lineNumber: 1; columnNumber: 22; XML version "2.0.2" is not supported
Solution
Assuming that the XML data you are importing starts with an XML prolog like the following:
<?xml version="2.0.2" encoding="UTF-8"?>
In order to process it, the version declared in the source can be replaced with 1.0
by using the JavaScript preprocessor configured for source XML format:
message.replace('<?xml version="2.0.2"', '<?xml version="1.0"');
Comments
0 comments
Please sign in to leave a comment.