troubleshooting Question

Using Open XML to edit Unicode XML files

Avatar of Hardi
Hardi asked on
12 Comments1 Solution618 ViewsLast Modified:
I need help from someone who has used Open XML to read and write Unicode XML files, with Delphi 7.

I just installed Open XML (
and TntWare (
to read, edit, and save XML files.
However I am not sure how to use these components for working with Unicode strings.

Could someone give me a sample working code to use those 2 components to do the following:
- Read an XML file (the encoding can be anything, mostly UTF-8 though)
- Display some value (can be non-ASCII) in a TntEdit (I would probably use a stringgrid later, but I think TntEdit is the simplest for just an example). This value can then be edited.
- Save the XML without changing the encoding, updating the value that has been edited

Let's say I expect the XML to be in this format:
<?xml version="1.0" encoding="......." ?>
   <item name="....." description="....." />

I want to be able to edit the value of description, where it may contain any character (eg. Chinese or anything)

Thanks a lot!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 12 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 1 Answer and 12 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