🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1347

Re: Problems using TXMLDocument

#1347
From: Remy Lebeau (TeamB)
Date: Wed, 23 Feb 2005 20:24
35 lines
1772 bytes
"Carlos Botto" <carlosb@qualitau.com> wrote in message
news:421ce3f0$1@newsgroups.borland.com...

> The error message is : "Exception EOleException in module
> xmlrtl60.bpl at 00082831"

Is that the whole message?  There should have been a text message included
that described the reason for the error.

>  XMLDocument = new TXMLDocument("");

Do not use TXMLDocument dynamically like that.  TXMLDocument works
differently when instantiated dynamically.  Use the IXMLDocument interface
via NewXMLDocument() and LoadXMLDocument() instead, ie:

    void TChildFRM::ReadXMLFile(AnsiString FileName, XMLFileDescription
*FileDesc[])
    {
        _di_IXMLDocument XMLDocument;
        //...
        if( FileExists(FileName) )
        {
            XMLDocument = LoadXMLDocument(FileName);
            //...
        }
        else
        {
            XMLDocument = NewXMLDocument();
            //...
        }
    }


Gambit
Technical Details
Message-ID: <421ce683@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <421ce3f0$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,4a54551f5d9bd767
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <421ce3f0$1@newsgroups.borland.com>
Subject: Re: Problems using TXMLDocument 
Date: Wed, 23 Feb 2005 12:24:36 -0800
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <421ce683@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109190275 68.69.17.41 (23 Feb 2005 12:24:35 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail