troubleshooting Question

XML encoding is not added

Avatar of Stef Merlijn
Stef MerlijnFlag for Netherlands asked on
18 Comments2 Solutions3392 ViewsLast Modified:

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"?>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 18 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros