Article View: borland.public.cppbuilder.internet.web
Article #1648TXMLDocument
From: Adam Griffin
Date: Fri, 13 Aug 2004 16:45
Date: Fri, 13 Aug 2004 16:45
21 lines
1658 bytes
1658 bytes
The Following code works fine when the TXMLDocument component is placed
directly on the form, however the code throws an EAccessViolation when
TXMLDocument is instantiated at runtime. I instantiate TXMLDocoment as
follows: TXMLDocument* XMLDocument1 = new TXMLDocument("");
XMLDocument1->LoadFromFile(WideString("http://oconee.itron.com/scripts/ocn-e
x40.wsc/w1_mf073.p?part=980090000-000"));
_di_IXMLNode Part = XMLDocument1->DocumentElement->ChildNodes->GetNode(0);
for(int i=0;i<Part->ChildNodes->Count ;i++){
if(Part->GetHasChildNodes()) {
_di_IXMLNode part1=Part->ChildNodes->GetNode(i);
Memo1->Lines->Add("~p" + part1->GetAttribute(WideString("number")) +
"=\"" + part1->GetAttribute(WideString("description")) + "\"");
}
}
Can someone provide me with help?
Thanks,
atg
Technical Details
Message-ID:
<411cf085$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: feeec,c86aa8c1c304d723,start X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Adam Griffin" <adam.griffin@itron.com> Newsgroups: borland.public.cppbuilder.internet.web Subject: TXMLDocument Date: Fri, 13 Aug 2004 12:45:49 -0400 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 65.167.38.162 Message-ID: <411cf085$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1092415621 65.167.38.162 (13 Aug 2004 09:47:01 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail