🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problems using TXMLDocument

#1352
From: Carlos Botto
Date: Wed, 23 Feb 2005 23:46
59 lines
2451 bytes
Remy,

My actual code is:

TXMLDocument *XMLDocument;  //I'd drop the component on the Child form, wich
is a fsMDIChild.

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;


Thanks



Carlos

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:421d0494$1@newsgroups.borland.com...
>
> "Carlos Botto" <carlosb@qualitau.com> wrote in message
> news:421cf9a4$1@newsgroups.borland.com...
>
> > I had another problem linking the DLL, I got some
> > "unresolved external" errors:
>
> You did not make the changes I suggested.  Those errors are still
> referencing to TXMLDocument.
>
> > But I saw in another post that the solution for that was
> > checking "Build with runtime packages" in Options. Is
> > that correct?
>
> If you do that, you will have to distribute additional BPL files along
with
> your DLL.   It sounds like you did not add the xmlrtl package to your
> project at all.  That would account for the "unresolved external" errors.
>
>
> Gambit
>
>
Technical Details
Message-ID: <421d15c0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <421ce3f0$1@newsgroups.borland.com> <421ce683@newsgroups.borland.com> <421cf9a4$1@newsgroups.borland.com> <421d0494$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>
Subject: Re: Problems using TXMLDocument 
Date: Wed, 23 Feb 2005 15:46:07 -0800
Lines: 61
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: <421d15c0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109202368 64.2.27.194 (23 Feb 2005 15:46:08 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail