Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which library for XML files in a Delphi Cross-platform application?

I'm writing a FireMonkey application which must run in Windows as well in OSX. Until now I've used MSXML for my Windows apps, but of course this library is not compatible with OSX. So the question is, does Delphi XE2 include any XML library compatible with OSX, or is there a third-party XML library compatible with OSX?

like image 921
Salvador Avatar asked Sep 20 '11 20:09

Salvador


2 Answers

In unit Xml.XMLDoc; you have a TXMLDocument; If you choose DOMVendor := ADOM XML v4, it's available for Windows and OSX.

It's directly available from the Tool palette.

like image 112
Whiler Avatar answered Feb 11 '23 18:02

Whiler


I know TNativeXML works in the unicode versions of Delphi (2009+) and I'm also pretty sure that it has no Windows API requirements. I haven't tried compiling it with XE2 yet, but the authors site claims compatibility up to Delphi XE.

NativeXML

like image 21
Vivian Mills Avatar answered Feb 11 '23 19:02

Vivian Mills