Recent

Author Topic: Invalid character in input stream (WST and FPC / Lazarus XML libs)  (Read 848 times)

lainz

  • Hero Member
  • *****
  • Posts: 4713
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Hi, I'm using Web Service Toolkit (WST) and I get this error when receiving the XML: "In 'stream': (line 1 pos 856): Invalid character in input stream"

Searching with Find all files, I found that the exception can be triggered from 2 different sources:
-fcl-xml
-lazutils laz2_xmlread.pas

Edit: Seems that is in
Code: Pascal  [Select][+][-]
  1. TwstXMLDocument = {$IFDEF WST_DELPHI}wst_delphi_xml.TXMLDocument{$ELSE}TXMLDocument{$ENDIF};
  2.  
fcl-xml, because TXMLDocument is located in that package.

How to fix this bug, the XML can't be changed... is what I receive from a Web Service.

How I can check the XML content as well... because all is handled by WST.

Attached screenshot of the bug... in FPC and Lazarus Fixes from the past week-
« Last Edit: April 27, 2024, 10:29:45 pm by lainz »

lainz

  • Hero Member
  • *****
  • Posts: 4713
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Invalid character in input stream (WST and FPC / Lazarus XML libs)
« Reply #1 on: April 28, 2024, 03:26:32 am »
Solved by esvignolo.

 

TinyPortal © 2005-2018