[fpc-pascal] Libxml2 - How to get messages on Linux?
Gabor Boros
mlnglsts at bgss.hu
Tue May 22 10:06:36 CEST 2018
Hi All,
I need to accomplish validate XML files with an XSD. Found libxml in
packages and works as expected with Win32. But I have problem with
messages on Linux 64bit. Got %s instead the real message text. I use the
below code to get the messages. Any idea why not works with Linux64 bit?
var
SL_Warning,SL_Error:TStringList;
procedure SchemaValidityWarningFunc(ctx: Pointer; const msg: PChar);
begin
SL_Warning.Add(msg);
end;
procedure SchemaValidityErrorFunc(ctx: Pointer; const msg: PChar);
begin
SL_Error.Add(msg);
end;
Gabor
More information about the fpc-pascal
mailing list