3
votes

Am I correct in that Delphi 4 XE Pro does not supply any native way of reading XML documents? (TXMLDocument is Windows only) I have pondered about using TClientDataSet, but I am not sure if that is the right way to go.

Here is an example of what I want: Readonly XML file that defines a list of contacts. In the XML file, it also contains e.g. file path to photo of contact.

Ideally I then want to show the data in e.g. a TListBox (which might mean I need to write my own logic for loading images in/out of memory.)

1
This might be the answer. - TLama
I am still hoping they have a native solution for Delphi/mobile development. Otherwise I will of course need to look into 3rd party solutions :( - Tom
Libxml2 libraries are 100% native - mjn

1 Answers

2
votes

If validation is not required (as in the linked answer above), try

NativeXml or OmniXML

Both are free open source libraries for Delphi, however I have not checked if they can be used on other platforms.

Update: see http://www.kluug.net/omnixml.php and Windows & Mac XML library for delphi XE2