Article View: borland.public.cppbuilder.internet.web
Article #1346Problems using TXMLDocument
From: Carlos Botto
Date: Wed, 23 Feb 2005 20:13
Date: Wed, 23 Feb 2005 20:13
41 lines
2027 bytes
2027 bytes
Hi,
The code below belongs to a unit call Child.cpp, the Child.obj file is used
with others to create a DLL. I used the same piece of code in a single
application to test it and it worked well, but when I have an application
that uses the DLL I'm having the following error at the sentence "
XMLDocument->LoadFromFile((WideString)FileName);"
The error message is : "Exception EOleException in module xmlrtl60.bpl at
00082831"
And the code is :
void TChildFRM::ReadXMLFile(AnsiString FileName, XMLFileDescription
*FileDesc[])
{
int i;
AnsiString NodeName;
AnsiString Value;
_di_IXMLNode docRoot;
_di_IXMLNode docCurrentNode;
XMLDocument = new TXMLDocument("");
ParentNode.clear();
if(FileExists(FileName))
{
XMLDocument->LoadFromFile((WideString)FileName);
docRoot = XMLDocument->DocumentElement;
docCurrentNode = docRoot;
ParentNode[FileDesc[0]->GetNodeLevel()] = docCurrentNode;
Any ideas?
Thank you
Carlos
Technical Details
Message-ID:
<421ce3f0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,4a54551f5d9bd767,start 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 Subject: Problems using TXMLDocument Date: Wed, 23 Feb 2005 12:13:37 -0800 Lines: 43 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: <421ce3f0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1109189616 64.2.27.194 (23 Feb 2005 12:13:36 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail