<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: openxml xml parser error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844761#M4875604</link>
    <description>&lt;P&gt;I would like to add that I do not see any conversion to the DB CHAR charset. I will explain why:&lt;BR /&gt;
1. When the CallGoogleApi is executed, I get a temporary value (the server response) as LONG BINARY (one-to-one, no conversion)&lt;BR /&gt;
2. I pass this BINARY to OPENXML that should accept it as well (indeed I can also add ENCODING if I want, but the documentation says that USING VALUE can read data from LONG BINARY)&lt;BR /&gt;
3. Then I select all fields/records from the OPENXML result set.&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;In other words, I do not store values in the DB. I do not use single-byte functions. The code should work with temporary variables/values as in any other programming language. I just submit my query to the server and expect that it will process it well.&lt;/P&gt;
&lt;P&gt;I agree that only after I plan to insert the obtained UTF-8 string into a table, the DB server should warn me that implicit character conversion is used and either decline the INSERT or replace characters.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2017 10:33:34 GMT</pubDate>
    <dc:creator>Vlad</dc:creator>
    <dc:date>2017-12-19T10:33:34Z</dc:date>
    <item>
      <title>openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaq-p/13844741</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;When using "openxml" on results of the Google Geocoding API, I receive an XML parser error with the message "Invalid control character" for certain address details. Here's an example:&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;select * from openxml("CallGoogleapi"('&lt;A href="https://maps.googleapis.com/maps/api/geocode/xml?address=pasica+75000+tuzla&amp;amp;language=en'),'/GeocodeResponse/result/geometry/location/lat')" target="_blank"&gt;https://maps.googleapis.com/maps/api/geocode/xml?address=pasica+75000+tuzla&amp;amp;language=en'),'/GeocodeResponse/result/geometry/location/lat')&lt;/A&gt; with("lat" long varchar 'text()')
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;with "CallGoogleapi" defined as&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;FUNCTION "CallGoogleapi"( in "sLocation" long varchar ) 
returns xml
url '!sLocation!'
type 'HTTP:GET'
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;What can I do, so that openxml does not geerate this error?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;Dirk&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 04:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaq-p/13844741</guid>
      <dc:creator>former_SQLA_member1694948</dc:creator>
      <dc:date>2017-12-15T04:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844742#M4875585</link>
      <description>&lt;P&gt;I suggest to have a look at the XML document returned from the API, ideally in an XML aware editor / viewer which visualizes the document structure.&lt;/P&gt;
&lt;P&gt;HTH&lt;BR /&gt;
Volker&lt;BR /&gt;
DB-TecKnowledgy&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 20:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844742#M4875585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-12-15T20:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844743#M4875586</link>
      <description>&lt;P&gt;I forgot to mention that this call normally works. For "berlin" I can calculate lat/log without oproblems:&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;"&lt;A href="https://maps.googleapis.com/maps/api/geocode/xml?address=berlin"&gt;https://maps.googleapis.com/maps/api/geocode/xml?address=berlin&lt;/A&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;language=en"

"......&lt;SPAN&gt;&amp;lt;lat&amp;gt;&lt;/SPAN&gt;52.5200066&lt;SPAN&gt;&amp;lt;/lat&amp;gt;&amp;lt;lng&amp;gt;&lt;/SPAN&gt;13.4049540&lt;SPAN&gt;&amp;lt;/lng&amp;gt;&lt;/SPAN&gt;....."
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;In the query "pasica+75000+tuzla" sa-17 reports the parsing error at character 150, line 6, column 41:&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;1    &amp;lt; ?xml version="1.0" encoding="UTF-8"?&amp;gt;
2    -&amp;lt; GeocodeResponse&amp;gt;
3     &amp;lt; status&amp;gt;OK&amp;lt; /status&amp;gt;
4     &amp;lt; result&amp;gt;
5        &amp;lt; type&amp;gt;route&amp;lt; /type&amp;gt;
6        &amp;lt; formatted_address&amp;gt;Hadži Hasanage Pašića, Tuzla 75000, Bosnia and Herzegovina&amp;lt; /formatted_address&amp;gt;
7        &amp;lt; address_component&amp;gt;
8          &amp;lt; long_name&amp;gt;Hadži Hasanage Pašića&amp;lt; /long_name&amp;gt;
          .....
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Saving the result to a file, I see the following result with an unicode character:&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;&amp;lt;formatted_address&amp;gt;&lt;/SPAN&gt;Hadži Hasanage Paši**/u001a**a, Tuzla 75000, Bosnia and Herzegovina&lt;SPAN&gt;&amp;lt;/formatted_address&amp;gt;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;In line 6, column 41 there is a hex "1A00" or U+001A. Apparently, openxml has a problem with this character. Would I have to do a conversion here?&lt;/P&gt;
&lt;P&gt;Kind regards,
Dirk&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 05:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844743#M4875586</guid>
      <dc:creator>former_SQLA_member1694948</dc:creator>
      <dc:date>2017-12-16T05:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844748#M4875591</link>
      <description>&lt;P&gt;I'm not sufficiently expert in XML to decide whether this is correct but my guess is that 'encoding="UTF-8"' makes it valid. Unless your database's char collation is UTF-8, it might be worth trying to use nvarchar instead of varchar in your definitions.&lt;BR /&gt;
At least, this information could help to locate the problem.&lt;BR /&gt;
Cheers&lt;BR /&gt;
Volker&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 07:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844748#M4875591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-12-16T07:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844749#M4875592</link>
      <description>&lt;P&gt;There is the &lt;EM&gt;ENCODING&lt;/EM&gt; option in the help article: &lt;A href="http://dcx.sap.com/index.html#sqla170/en/html/817205cf6ce21014a949c790fd6b0608.html"&gt;http://dcx.sap.com/index.html#sqla170/en/html/817205cf6ce21014a949c790fd6b0608.html&lt;/A&gt;
Can you please try to use UTF-8 in this operator?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 08:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844749#M4875592</guid>
      <dc:creator>Vlad</dc:creator>
      <dc:date>2017-12-16T08:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844750#M4875593</link>
      <description>&lt;P&gt;Try it with one exclamation: url '!sLocation'&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2017 08:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844750#M4875593</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2017-12-17T08:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844744#M4875587</link>
      <description>&lt;P&gt;I think you should use (long) nvarchar data types for the OPEN XML output columns (i.e. in your case the "lat" column). According to the docs, the XML data will then be interpreted as NCHAR data, as well - to cite:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;The xml-data is parsed directly in the NCHAR encoding if there are any NCHAR columns in the output. The xpath and namespaces arguments are also converted and parsed in the NCHAR encoding.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sun, 17 Dec 2017 11:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844744#M4875587</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2017-12-17T11:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844751#M4875594</link>
      <description>&lt;P&gt;Thanks for the hint. Unfortunately, I continue to receive the same error message.&lt;/P&gt;
&lt;P&gt;select * from openxml("CallGoogleapi"('https://maps.googleapis.com/maps/api/geocode/xml?address=pasica+75000+tuzla&amp;amp;language=de@region=de'),'/GeocodeResponse/result/geometry/location/lat') with("lat" long nvarchar 'text()') OPTION (encoding="UTF-8")&lt;/P&gt;
&lt;P&gt;returns still the same error.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 01:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844751#M4875594</guid>
      <dc:creator>former_SQLA_member1694948</dc:creator>
      <dc:date>2017-12-18T01:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844752#M4875595</link>
      <description>&lt;P&gt;Thanks, but unfortunately this did not help either.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 02:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844752#M4875595</guid>
      <dc:creator>former_SQLA_member1694948</dc:creator>
      <dc:date>2017-12-18T02:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844753#M4875596</link>
      <description>&lt;P&gt;I tried both, but I still get the XML parsing error at the same position.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 03:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844753#M4875596</guid>
      <dc:creator>former_SQLA_member1694948</dc:creator>
      <dc:date>2017-12-18T03:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844754#M4875597</link>
      <description>&lt;P&gt;I tried this, but I still get the error message.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 03:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844754#M4875597</guid>
      <dc:creator>former_SQLA_member1694948</dc:creator>
      <dc:date>2017-12-18T03:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844745#M4875588</link>
      <description>&lt;P&gt;I tried it again with newly created databases. When using the default collation ("COLLATION '1252LATIN1' NCHAR COLLATION 'UCA'") I still get the error.&lt;/P&gt;
&lt;P&gt;When using "COLLATION 'UCA' NCHAR COLLATION 'UCA'" everything works fine!&lt;/P&gt;
&lt;P&gt;I changed everything to "NVARCHAR" and tried it again with default collation: I still get the error.&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;select * from openxml("CallGoogleapi"('&lt;A href="https://maps.googleapis.com/maps/api/geocode/xml?address=pasica+75000+tuzla&amp;amp;language=de@region=de'),'/GeocodeResponse/result/geometry/location/lat')"&gt;https://maps.googleapis.com/maps/api/geocode/xml?address=pasica+75000+tuzla&amp;amp;language=de@region=de'),'/GeocodeResponse/result/geometry/location/lat')&lt;/A&gt; with("lat" long nvarchar 'text()') OPTION (ENCODING='UTF-8')

FUNCTION "DBA"."CallGoogleapi"( in "sLocation" long nvarchar ) 
returns long nvarchar
url '!sLocation'
type 'HTTP:GET'
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Shouldn't the call also be possible with the default collation?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 04:38:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844745#M4875588</guid>
      <dc:creator>former_SQLA_member1694948</dc:creator>
      <dc:date>2017-12-18T04:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844755#M4875598</link>
      <description>&lt;P&gt;Does it work when you replace the mask "/u" with "\\u", as that is the expected encoding when using UNISTR to generate NCHAR data based on their code point?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 04:43:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844755#M4875598</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2017-12-18T04:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844756#M4875599</link>
      <description>&lt;P&gt;What encoding does the file use?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 04:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844756#M4875599</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2017-12-18T04:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844757#M4875600</link>
      <description>&lt;P&gt;I called "SELECT "CallMapsGoogleapi"('https://maps.googleapis.com/maps/api/geocode/xml?address=pasica+75000+tuzla&amp;amp;language=de@region=de')" and saved the rsult directly in Interactive SQL to a file? &lt;/P&gt;
&lt;P&gt;Interactive SQL used UTF-8.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 04:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844757#M4875600</guid>
      <dc:creator>former_SQLA_member1694948</dc:creator>
      <dc:date>2017-12-18T04:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844758#M4875601</link>
      <description>&lt;P&gt;There is no /u or \\u in the output. I can't copy the character to the editor. It is the 20th character in this string:  "Hadži Hasanage Paši\x1aa" (between i and a at the end). &lt;/P&gt;
&lt;P&gt;As soon as I save the comment, the UTF-8 character disappears.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 04:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844758#M4875601</guid>
      <dc:creator>former_SQLA_member1694948</dc:creator>
      <dc:date>2017-12-18T04:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844746#M4875589</link>
      <description>&lt;P&gt;I think the problem is not the OPENXML call but the web client function. It seems to convert the returned value to the CHAR datatype (so it works when you use UTF-8 as CHAR encoding). That restriction is documented &lt;A href="http://dcx.sap.com/index.html#sqla170/en/html/816bd5766ce21014aee1f6b507ad3a39.html"&gt;here under "data-type"&lt;/A&gt;, if my assumption is correct:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Only SOAP requests support the transmission of typed data such as FLOAT, INT, and so on. HTTP requests support the transmission of strings only, so you are limited to CHAR types.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you might have to use a web client function of type SOAP...&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 07:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844746#M4875589</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2017-12-18T07:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844747#M4875590</link>
      <description>&lt;P&gt;I was finally able to solve this... I don't even know the correct word... 'thing'. I don't know where to start, because the error is unclear, and the documentation looks incomplete for Unicode-related questions.&lt;/P&gt;
&lt;P&gt;There are important links that explain that SqlAnywhere (when it cannot convert a string from one encoding to another) &lt;A href="http://dcx.sap.com/index.html#sqla170/en/html/81f5c53f6ce21014b7c0a0a2e3bd9984.html"&gt;replaces the multi-byte character with '0x1a'&lt;/A&gt;.
There is an option (&lt;A href="http://dcx.sap.com/index.html#sqla170/en/html/8148dbde6ce21014b798dc8fd5126d5c.html"&gt;on_charset_conversion_failure&lt;/A&gt;) that you &lt;STRONG&gt;can try&lt;/STRONG&gt; to switch to Error to see if SA faces some difficulties with an implicit conversion. And I forgot to mention that you cannot use this option, because the default collation is LATIN1251 (at least on my machine) - 'single byte'.&lt;/P&gt;
&lt;P&gt;If you execute the SELECT statement in SCJVIEW, you will see that SA returns a different string than you submitted:&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;SELECT  'Pašića Hadži' AS chr1,   'Жпа' AS chr2,
       N'Pašića Hadži' AS nchr1, N'Жпа' AS nchr2;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Here is what I see on my screen:&lt;BR /&gt;
&lt;IMG src="https://i.imgur.com/UrVC01V.png" alt=":(" /&gt;&lt;/P&gt;
&lt;P&gt;But after I have created the DB file with the following command line options:&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;dbinit -dba dba,sql -mpl 3 -ze utf8 -zn UTF8BIN -z UTF8BIN anotherDB
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;I was able to get what I really wanted:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://i.imgur.com/z5Md2Yu.png" alt=":)" /&gt;&lt;/P&gt;
&lt;P&gt;Even you code works on a fresh DB file:&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;CREATE OR REPLACE FUNCTION "dba"."CallGoogleApi"( IN "sLocation" LONG NVARCHAR)
RETURNS LONG BINARY
URL '!sLocation'
TYPE 'HTTP:GET'

SELECT * FROM OPENXML("CallGoogleapi"('&lt;A href="https://maps.googleapis.com/maps/api/geocode/xml?address=pasica+75000+tuzla&amp;amp;language=de@region=de'),"&gt;https://maps.googleapis.com/maps/api/geocode/xml?address=pasica+75000+tuzla&amp;amp;language=de@region=de'),&lt;/A&gt; '/GeocodeResponse/result/geometry/location/lat')
              WITH("lat" LONG NVARCHAR'text()')
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;&lt;IMG src="https://i.imgur.com/JypBUIQ.png" alt="The Grand Budapest Hotel" /&gt;&lt;/P&gt;
&lt;P&gt;p.s. don't repeat my faults... don't work with Unicode in SQL. This is painful.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844747#M4875590</guid>
      <dc:creator>Vlad</dc:creator>
      <dc:date>2017-12-19T09:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844759#M4875602</link>
      <description>&lt;P&gt;Note that all SQL statements are converted and transmitted to the server in Database CHAR charset and characters that cannot be mapped to the Database CHAR charset get replaced by the '0x1a' character. This is why you are getting the results that you are seeing.&lt;/P&gt;
&lt;P&gt;In a similar way, HTTP results are expected to be in Database CHAR charset as Volker pointed out in his response above.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844759#M4875602</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2017-12-19T09:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: openxml xml parser error</title>
      <link>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844760#M4875603</link>
      <description>&lt;P&gt;So my conclusion is correct that a SOAP type request is required for NCHAR data when the database does use a single-byte CHAR collation?&lt;/P&gt;
&lt;P&gt;I agree with Vlad that Unicode handling with web client procedures could be explained better in the docs... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 10:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/openxml-xml-parser-error/qaa-p/13844760#M4875603</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2017-12-19T10:06:56Z</dc:date>
    </item>
  </channel>
</rss>

