[DUG] TXMLDocument

Barry Neale barry.delphi at gmail.com
Wed Sep 21 11:19:10 NZST 2005


try starting with the XMLDoc 's DocumentElement property and go from there 
instead of going thru the XMLDoc's CHildNodes.


 On 9/21/05, David O'Brien <dave at iccs.co.nz> wrote: 
> 
> Having trouble with this component:
> Var
> Node: IXMLNode ;
> ...
> XMLDoc.LoadFromFile(Filename);
> XMLDoc.Active := True ;
> ShowMessage(InttoStr(XMLDoc.ChildNodes.Count)) ; // shows one child...
> Node := XMLDoc.ChildNodes[0] ; // Makes no diff if I use 0 or 1...
> 
> The last line gives: Access violation at address 00403C95... Read of 
> address
> 73656369.
> 
> Does anyone have any example code that explains how to use this component? 
> I
> am able to create a document from scratch and write it to file ok, it's 
> just
> reading it back.
> 
> Ta,
> David O'Brien
> (dave at iccs.co.nz)
> 027 442 1037
> Computer sales and support services
> Custom software design
> 
> I've stopped 43 spam and fraud messages. You can too!
> One month FREE spam and fraud protection at
> http://www.cloudmark.com/sig/?rc=xyn94
> -----Original Message-----
> From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] 
> On
> Behalf Of Paul McKenzie
> Sent: Wednesday, 21 September 2005 11:03 a.m.
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [DUG] [OFF-TOPIC]:What ever happened to?
> 
> We did some basic testing C# in the D2005 IDE and attempting to debug a
> 3-Tier app crawled
> attempting to load a large project crawled
> The same could not be said of VS2005 (ok D2006 may match speed, but it is
> not here now and not sure
> if D2006 will be .Net 2 compatible)
> 
> Regards
> Paul McKenzie
> Wellington
> New Zealand
> 
> 
> James Sugrue wrote:
> > I disagree with that. There are some features that VS has that D2005
> > doesn't, mostly to do with ADO and IDE stability.
> >
> > -----Original Message-----
> > From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
> On
> > Behalf Of Jeremy North
> > Sent: Wednesday, 21 September 2005 10:40 a.m.
> > To: Nahum.Wild at payglobal.com; NZ Borland Developers Group - Delphi List
> > Subject: Re: [DUG] [OFF-TOPIC]:What ever happened to?
> >
> >
> > While I don't mind C# and have done quite a bit you don't need VS to
> > use C# as Delphi copes quite well with it.
> >
> >
> > _______________________________________________
> > Delphi mailing list
> > Delphi at ns3.123.co.nz
> > http://ns3.123.co.nz/mailman/listinfo/delphi
> >
> >
> > _______________________________________________
> > Delphi mailing list
> > Delphi at ns3.123.co.nz
> > http://ns3.123.co.nz/mailman/listinfo/delphi
> >
> >
> 
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
> 
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20050921/abd80041/attachment.html


More information about the Delphi mailing list