SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 64547: The XML Mapper processes whitespace characters incorrectly when generating an XMLMap file for an imported XML document

DetailsHotfixAboutRate It

The SAS® 9.4 version of the SAS XML Mapper might add incorrect information for a column definition in the XMLMap file. This problem occurs when you are using either the AUTOMAP feature or the AUTOMAP= option.

The cause of this issue is that an element in the XML file contains whitespace characters.

The data type for the column when using the AUTOMAP= option might be autodetected with a data type of string, regardless of the value, when the element also contains any whitespace characters. For example, the element WFSDate, which contains date information as well as whitespace characters, appears as follows in the XMLMap file:

<COLUMN name="WFSDate">
             <PATH syntax="XPath">/Feed/WFSDate</PATH>
             <TYPE>character</TYPE>
             <DATATYPE>string</DATATYPE>
             <LENGTH>11</LENGTH>
</COLUMN>

For the <TYPE> definition, the expected type should be numeric, instead of character. For the <DATATYPE> definition, the expected type should be date, not string.

As a workaround, you can manually modify the column definition as needed within the XMLMap file.

Click the Hot Fix tab in this note to access the hot fix for this issue.

Note: This issue is fixed in Base SAS®. To find your Base SAS release, view the deployment registry as documented in SAS KB0036131.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASz/OS9.49.4_M69.4 TS1M09.4 TS1M6
z/OS 64-bit9.49.4_M69.4 TS1M09.4 TS1M6
Microsoft® Windows® for x649.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 8 Enterprise x649.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 8 Pro x649.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 8.1 Enterprise 32-bit9.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 8.1 Enterprise x649.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 8.1 Pro 32-bit9.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 8.1 Pro x649.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 109.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows Server 2008 R29.49.4 TS1M0
Microsoft Windows Server 2008 for x649.49.4 TS1M0
Microsoft Windows Server 2012 Datacenter9.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows Server 2012 R2 Datacenter9.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows Server 2012 R2 Std9.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows Server 2012 Std9.49.4_M69.4 TS1M09.4 TS1M6
Windows 7 Enterprise x649.49.4_M69.4 TS1M09.4 TS1M6
Windows 7 Professional x649.49.4_M69.4 TS1M09.4 TS1M6
64-bit Enabled AIX9.49.4_M69.4 TS1M09.4 TS1M6
64-bit Enabled Solaris9.49.4_M69.4 TS1M09.4 TS1M6
HP-UX IPF9.49.4_M69.4 TS1M09.4 TS1M6
Linux for x649.49.4_M69.4 TS1M09.4 TS1M6
Solaris for x649.49.4_M69.4 TS1M09.4 TS1M6
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.