How do I stop the IDE from referencing Windows-specific XML units in my non-Windows project?

前端 未结 1 1380
借酒劲吻你
借酒劲吻你 2021-01-23 16:11

I want to create a Android program in Delphi XE5 to work with XML files. I use TXMLDocument.

I can\'t compile and run it, though, because Delphi repeatedly

相关标签:
1条回答
  • 2021-01-23 16:59

    In the TXMLDocument, change the DOM vendor from MSXML to ADOMXML v4, to stop the need to use the MSXML unit.

    This is covered in the documentation for TXMLDocument.DOMVendor. Although it mentions specifically Mac, the same applies to other FireMonkey applications on iOS and Android.

    Tip: If you are designing a FireMonkey application that is intended to run on Mac OS X, then you should perform the following steps to ensure that the compilation succeeds:

    Change DOMVendor from MSXML to ADOM XML v4.

    If the Xml.Win.msxmldom unit is in the uses clause then remove it.

    Compile your application for Mac OS X.

    The documentation was modified in the XE5 version to read instead:

    Tip: To use TXMLDocument in Mac OS X or Mobile applications, in the Object Inspector, set the DOMVendor property to ADOM XML v4 right after dropping this component onto the Form Designer. Otherwise, the TXMLDocument component is no longer usable for iOS/Android/OSX applications.

    0 讨论(0)
提交回复
热议问题