Forum > Packages and Libraries

Invalid character in input stream (WST and FPC / Lazarus XML libs)


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:
-lazutils laz2_xmlread.pas

Edit: Seems that is in
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---TwstXMLDocument = {$IFDEF WST_DELPHI}wst_delphi_xml.TXMLDocument{$ELSE}TXMLDocument{$ENDIF}; 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-

Solved by esvignolo.


[0] Message Index

Go to full version