Problem Note 46233: Errors are generated when you use the XMLV2 LIBNAME engine to read certain XML files
Error messages like the following might be generated when you read XML files using the XMLV2 LIBNAME engine:
ERROR: Some code points did not transcode. error occurred at or near line #, column #
ERROR: XML parsing error. Please verify that the XML content is well-formed.
These errors occur when there are characters within the XML file which cannot be rendered correctly using the current session encoding.
To read the XML file correctly and prevent the error, modify the session encoding to the correct encoding, which renders the characters successfully.
An alternative to the above circumvention is to use the COMPAT=YES LIBNAME statement option when you use the XMLV2 engine. This option treats the characters the same as the default behavior of the XML engine and simply ignores the character that it cannot render. The sample code below illustrates this:
/* Example applying the COMPAT=YES option */
libname xmldata xmlv2 'c:\temp\test.xml' compat=yes;
proc copy in=xmldata out=work;
run;
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.3 TS1M0 | |
Z64 | 9.3 TS1M0 | |
Microsoft® Windows® for x64 | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M0 | |
Microsoft Windows Server 2008 | 9.3 TS1M0 | |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M0 | |
Microsoft Windows XP Professional | 9.3 TS1M0 | |
Windows 7 Enterprise 32 bit | 9.3 TS1M0 | |
Windows 7 Enterprise x64 | 9.3 TS1M0 | |
Windows 7 Home Premium 32 bit | 9.3 TS1M0 | |
Windows 7 Home Premium x64 | 9.3 TS1M0 | |
Windows 7 Professional 32 bit | 9.3 TS1M0 | |
Windows 7 Professional x64 | 9.3 TS1M0 | |
Windows 7 Ultimate 32 bit | 9.3 TS1M0 | |
Windows 7 Ultimate x64 | 9.3 TS1M0 | |
Windows Vista | 9.3 TS1M0 | |
Windows Vista for x64 | 9.3 TS1M0 | |
64-bit Enabled AIX | 9.3 TS1M0 | |
64-bit Enabled HP-UX | 9.3 TS1M0 | |
64-bit Enabled Solaris | 9.3 TS1M0 | |
HP-UX IPF | 9.3 TS1M0 | |
Linux | 9.3 TS1M0 | |
Linux for x64 | 9.3 TS1M0 | |
Solaris for x64 | 9.3 TS1M0 | |
*
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.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2012-07-16 10:07:18 |
Date Created: | 2012-04-05 06:33:02 |