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?
Asked
Active
Viewed 2,565 times
12
-
is OmniXML compatible with delphi-xe2? – Salvador Sep 20 '11 at 20:10
-
why would it not be? If it isn't I bet it soon will be. – David Heffernan Sep 20 '11 at 20:17
-
2Also have a look at [NativeXML](http://www.simdesign.nl/xml.html) – stukelly Sep 20 '11 at 20:35
-
1See answer below about ADOM. Since ADOM is a native code implementation it should work out of the box using TXMLDocument. – Misha Sep 21 '11 at 00:47
2 Answers
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.

Vivian Mills
- 2,552
- 14
- 19