I'm using following code to create an XML. But the Encoding isn't added to the XML. This did work nicely previously, but now it isn't anymore?
How can I solve this?
Doc := NewXMLDocument;
Doc.Version := '1.0';
Doc.Encoding := 'utf-8';
TijdelijkeString := Doc.XML.Text;
The XML should look like:
<?xml version="1.0" encoding="UTF-8"?>