Article View: borland.public.cppbuilder.internet.web
Article #1371Re: Problems using TXMLDocument
From: Carlos Botto
Date: Thu, 24 Feb 2005 20:00
Date: Thu, 24 Feb 2005 20:00
118 lines
4641 bytes
4641 bytes
Remy,
I implemented your suggestions and I got the same error than with my
original code.
This code is in the Child.cpp unit and the call to this method is in
View.cpp, both units are used to build the DLL.
With your suggestion I had:
void TChildFRM::ReadXMLFile(AnsiString FileName, XMLFileDescription
*FileDesc[])
{
int i;
AnsiString NodeName;
AnsiString Value;
_di_IXMLNode docRoot;
_di_IXMLNode docCurrentNode;
_di_IXMLDocument XMLDocument;
ParentNode.clear();
if(FileExists(FileName))
{
XMLDocument = LoadXMLDocument((WideString)FileName);
docRoot = XMLDocument->DocumentElement;
docCurrentNode = docRoot;
ParentNode[FileDesc[0]->GetNodeLevel()] = docCurrentNode;
And the error "Exception EOleException in module xmlrtl60.bpl at
00082831" occurred at the LoadXMLFile sentence (the FileName variable has
the rigth value). The error window title is "Application Error" and there is
no more information about it
With my original code:
void TChildFRM::ReadXMLFile(AnsiString FileName, XMLFileDescription
*FileDesc[])
{
int i;
AnsiString NodeName;
AnsiString Value;
_di_IXMLNode docRoot;
_di_IXMLNode docCurrentNode;
ParentNode.clear();
if(FileExists(FileName))
{
XMLDocument->LoadFromFile((WideString)FileName);
docRoot = XMLDocument->DocumentElement;
docCurrentNode = docRoot;
ParentNode[FileDesc[0]->GetNodeLevel()] = docCurrentNode;
I got exactly the same error at the LoadFromFile sentence.
Also when I uncheck the ""Build with runtime packages option" I get the
following error when links the DLL:
With your code :
[Linker Error] Unresolved external '__fastcall Xmldoc::LoadXMLDocument(const
System::WideString)' referenced from Z:\GRAPH ENVIRONMENT\OBJECT\CHILD.OBJ
With my code:
[Linker Error] Unresolved external '__fastcall
Xmldoc::TXMLDocument::LoadFromFile(const System::WideString)' referenced
from Z:\GRAPH ENVIRONMENT\OBJECT\CHILD.OBJ
[Linker Error] Unresolved external '__fastcall
Xmldoc::TXMLDocument::GetDocumentElement()' referenced from Z:\GRAPH
ENVIRONMENT\OBJECT\CHILD.OBJ
[Linker Error] Unresolved external 'Xmldoc::TXMLDocument::' referenced from
Z:\GRAPH ENVIRONMENT\OBJECT\CHILD.OBJ
In Desing Packages I have installed the xmldocBCB6.bpl package, and I tried
to install xmlrtl60.bpl, but it complains saying: "Package
c:\Windows\System32\xmlrtl60.bpl can't be installed because it is not a
design time package." Are there any othe package that I should install?
Thank you
Carlos
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:421d1aa4$1@newsgroups.borland.com...
>
> "Carlos Botto" <carlosb@qualitau.com> wrote in message
> news:421d116d$1@newsgroups.borland.com...
>
> > Sorry, I didn,t express myself very well. I tried your
> > suggestions, but it diddn't work either.
>
> Why not? Just saying it doesn't work says nothing about the actual
problem
> you are having. Always provide specific details.
>
> > I'm now back to my original code wich use a TXMLDocument component,
>
> As I already said earlier, you really should not create TXMLDocument
> instances dynamically.
>
> > but in any way that I tried to implement it I always had problems
> > running the application that uses the DLL.
>
> Why? Again, always provide SPECIFIC details.
>
>
> Gambit
>
>
Technical Details
Message-ID:
<421e3257$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!tdsnet-transit!newspeer.tds.net!gail.ripco.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<421ce3f0$1@newsgroups.borland.com> <421ce683@newsgroups.borland.com> <421cf9a4$1@newsgroups.borland.com> <421d0494$1@newsgroups.borland.com> <421d116d$1@newsgroups.borland.com> <421d1aa4$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 Reply-To: "Carlos Botto" <carlosb@qualitau.com> From: "Carlos Botto" <carlosb@qualitau.com> Newsgroups: borland.public.cppbuilder.internet.web References: <421ce3f0$1@newsgroups.borland.com> <421ce683@newsgroups.borland.com> <421cf9a4$1@newsgroups.borland.com> <421d0494$1@newsgroups.borland.com> <421d116d$1@newsgroups.borland.com> <421d1aa4$1@newsgroups.borland.com> Subject: Re: Problems using TXMLDocument Date: Thu, 24 Feb 2005 12:00:16 -0800 Lines: 120 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: 64.2.27.194 Message-ID: <421e3257$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1109275223 64.2.27.194 (24 Feb 2005 12:00:23 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!tdsnet-transit!newspeer.tds.net!gail.ripco.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail