Question Token Ibragimov · Aug 16, 2017

How ignore errors in XML response

Hi!

When trying to receive xml response 

set sc = ##class(%XML.TextReader).ParseString(str,.reader)

I'm getting error bellow: 

Invalid character (Unicode: 0x1A) while processing Anonymous Stream at line 2 offset 281

How I can ignore this error? Thank you.

Comments

Fabian Haupt · Aug 16, 2017

You'll have to fix the incoming XML. 

0
Token Ibragimov · Aug 18, 2017

Thank you Fabian! I have change the unicode to UTF-8.

0