EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElXMLDOMDocument.Enc is missing in 14.0.290?

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#36610
Posted: 04/29/2016 07:56:24
by Jakub Fildan (Premium support level)
Joined: 04/07/2016
Posts: 16

Hi,
I' moving applications to version 14.0.290 (I think from 9.1.215) and can't compile file with error E2003 Undeclared identifier: 'Enc'.
Code
lXMLDOMDocument.Enc :=ElXMLUTF8Codec.create;

I've searched changes.txt and help file but can't find any information about that.
Is the TElXMLDOMDocument.Enc replaced by something else?
#36611
Posted: 04/29/2016 08:24:36
by Dmytro Bogatskyy (EldoS Corp.)

Thank you for contacting us,

Quote
Is the TElXMLDOMDocument.Enc replaced by something else?

Do you need this property to save an XML document without a BOM (Byte Order Mark)?
If yes, then use the following code:
Code
F : TFileStream := TFileStream.Create(‘temp.xml’, fmCreate or fmOpenWrite);
Codec : TElXMLUTF8Codec := TElXMLUTF8Codec.Create();
try
  Codec.WriteBOM := false;
  XMLDocument. SaveToStream(F, xcmNone, Codec);
finally
  FreeAndNil(Codec);
  FreeAndNil(F);
end;
#36612
Posted: 04/29/2016 08:49:13
by Jakub Fildan (Premium support level)
Joined: 04/07/2016
Posts: 16

Hi Dmytro,
that's exactly what I need.

Thank you!

Regards,
Jakub

Reply

Statistics

Topic viewed 1247 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!