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 (http://www.philo.de/xml/
and TntWare (http://www.tntware.com/delphicontrols/unicode/
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!