12

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?

Ken White
  • 123,280
  • 14
  • 225
  • 444
Salvador
  • 16,132
  • 33
  • 143
  • 245

2 Answers2

12

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.

Whiler
  • 7,998
  • 4
  • 32
  • 56
  • `DOMVendor := ADOM XML v4` - looks like the compiler will complain ;) but +1 for ADOM (also known as Open XML) – mjn Sep 21 '11 at 05:40
  • @mjn: I agree ;o) I just wrote the needed value (I said 'choose', not 'type', so this is from the object inspector, not in the code, neither in the dfm :p). – Whiler Sep 21 '11 at 08:15
  • Okay so this was back before iOS and Android support - does it work in those platforms? – Jerry Dodge Jun 06 '15 at 17:54
3

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

Vivian Mills
  • 2,552
  • 14
  • 19