Import Microsoft XML 2.0

Posted on 2006-04-18
Last Modified: 2010-04-05
To register Microsoft XML, version 2.0 with Delphi, I choose Project | Import Type Library, find Microsoft XML version 2.0 (version 2.0), and click Install

I got many errors, like Undeclared identifier 'root', which points the root is not identified in the function below

function TXMLDocument.Get_root(out p: IXMLElement2): HResult;
    Result := DefaultInterface.root[p];

How to solve the problem?

Question by:petershaw9
    LVL 6

    Expert Comment

    I tried importing XML 2.0 and its working for me. I m getting the ouput like this:

    function TXMLDocument.Get_root(out p: IXMLElement2): HResult;
        Result := DefaultInterface.Get_root(p);
    LVL 26

    Expert Comment

       What version of Delphi are you using?

    Author Comment

    Delphi 6.
    Acturally yesterday I changed the code to Result := DefaultInterface.Get_root(p); But the compiler said the parameter is not enough.

    I installed the ms visual studio on my computer.

    I have the following msxml files under \sindows\system32
    msxml.dll     495K  4/8/2004 (d/m/yyyy)
    mxxml2.dll   685K  4/8/2004
    and some msxml3, 4, 6 etc.

    LVL 26

    Accepted Solution

    Delphi 6 includes the file msxml.pas that is the wrapper for MS XML. just put msxml in your uses.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    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…
    Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    779 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

    15 Experts available now in Live!

    Get 1:1 Help Now