XDOM with Delphi 2010

Posted on 2009-12-18
Last Modified: 2013-11-23
I have upgraded to Delphi 2010 and I am in the middle of porting the code. In my project I used XDOM but this does not seem to be available in 2010. What do I use instead?

Question by:ChrisNillissen

    Author Comment

    A simple example will be most welcome too. I have been playing around with everything, and cant seem to work it out at all.
    LVL 22

    Expert Comment

    by:Ferruccio Accalai
    AFAIK xdom is present in D2010 in C:\Program Files\Embarcadero\RAD Studio\7.0\source\Win32\xml
    LVL 7

    Accepted Solution

    Unit oxxmldom.pas is no longer part of Delphi 2010. However, you have three choices to pick from:

    adomxmldom.pas - ADOM XML v.4
    msxmldom.pas - MSXML
    xercesxmldom.pas - Xerces XML

    Which you can find in the RAD Studio\7.0\source\Win32\xml directory. You may have to add the $(BDS)\source\Win32\xml to your search path in the project options.

    You can select a new DOM using one of the following three statements:

          XMLDocument.DomVendor := adomxmldom.OpenXML4Factory;
          XMLDocument.DomVendor := xercesxmldom.XercesDOM;
          XMLDocument.DomVendor := msxmldom.MSXML_DOM;

    But you can also pick a new DOMVendor at design-time, of course.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now