In case you are wondering which of the many github (and even bitbucket) omnixml repos is the official one (as www.omnixml.com is still pointing to the old googlecode storage), this is it: https://github.com/mremec/omnixml.
www.omnixml.com should be pointing to the correct repository “real soon now” ;)
Very Nice Library. However, there must be a breaking change in Delphi XE10.1 (Berlin) - as I cannot compile it there. In OmniXML.pas - there is a call in the routine (TXMLTextStream.Create) - ( FWriter := TOTextWriter.Create(Stream, Encoding, WriteBOM);) However, this call tells me that there is no overloaded version of Create that can be called with these arguments.... The definition of the Create is as " constructor Create(const aStream: TStream;
ReplyDeleteconst aEncoding: TEncoding = nil; const aWriteBOM: Boolean = True;
const aCharBufferSize: Integer = OBUFFEREDSTREAMS_DEFCHARBUFFERSIZE); overload;
"
Is this a know issue?
Why don't you open issue on GitHub?
DeleteI just compiled it fine in Delphi 10.1 Starter / Win32 , the only thing I needed was suppressing the no more needed and no more working TEncoding.CodePage hack ( http://stackoverflow.com/a/9410717/976391 ) https://github.com/the-Arioch/omnixml/commit/1999bd6e827904242396fdf800aa4b5822fdfd71
DeleteThe FileList demo, for one, explicitly includes the use of TCodePages, however, and unless USE_MSXML is defined, will not build in Delphi 11.1.
Delete