Issue 31008 — filedump: empty file is created when XML stream is defined without linefeeds
Status: Solved in 10.2.01
Solution available in patch(es): X705 G101
Description:
Summary: Uniface: Filedump will create an empty file when an XML stream does not contain any linefeeds. Environment: +Uniface: Version 9.6.06 - X605 (and higher) +Operating System: OS independent +Database: DBMS independent Symptoms: Filedump will create an empty file when an XML stream does not contain any linefeeds. Consider the following code: vXml = "<?xml version=%%"1.0%%"?><A></A>" filedump vXml, "a.xml" > Result: the file a.xml will be empty. The following XML (with linefeeds) will result in a non-empty XML file: 1. vXml = "<?xml version=%%"1.0%%"?>%%^<A></A>" 2. vXml = "<?xml version=%%"1.0%%"?><A>%%^</A>" 3. vXml = "<?xml version=%%"1.0%%"?>%%^<A>%%^</A>"
Workaround:
Make sure that the XML declaration is on the first line of the XML stream and the XML data on the second. E.g. vXml = "<?xml version=%%"1.0%%"?>%%^<A></A>"
Notes: