<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name="country-region" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="City" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="place" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="PersonName" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: blue; TEXT-DECORATION: underline
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle21 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-GB vLink=blue link=blue>
<DIV dir=ltr align=left><SPAN class=438403200-21092005><FONT face=Arial 
color=#0000ff size=2>Hi Dave,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=438403200-21092005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=438403200-21092005><FONT face=Arial 
color=#0000ff size=2>Try this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=438403200-21092005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=438403200-21092005><FONT face=Arial 
color=#0000ff size=2>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">var<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; XMLDoc: 
TXMLDocument;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;<SPAN 
class=438403200-21092005>Root, </SPAN>Node: IXMLNode ;<o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">begin<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; XMLDoc := 
TXMLDocument.Create(nil);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; 
try<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; if 
FileExists(Filename) then<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
begin<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
XMLDoc.LoadFromFile(Filename) ;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
XMLDoc.Active := True ;</SPAN></FONT></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p><SPAN 
class=438403200-21092005>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Root := 
XMLDoc.DocumentElement; // there can only be one root element in an 
XMLDoc</SPAN></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Node :=&nbsp;<SPAN class=438403200-21092005>Root</SPAN>.ChildNodes[0] 
;<o:p></o:p></SPAN></P></FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial color=#000080 size=2><SPAN class=438403200-21092005>You 
will get an error if there is no root element in the XMLDoc. ChildNodes is an 
inherited&nbsp;property of XMLNode.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000080 size=2><SPAN 
class=438403200-21092005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#000080 size=2><SPAN 
class=438403200-21092005>Cheers,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000080 size=2><SPAN 
class=438403200-21092005>Laurence</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#000080 size=2><SPAN 
class=438403200-21092005></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> delphi-bounces@ns3.123.co.nz 
[mailto:delphi-bounces@ns3.123.co.nz] <B>On Behalf Of </B>David 
O'Brien<BR><B>Sent:</B> Wednesday, 21 September 2005 12:18 p.m.<BR><B>To:</B> 
'NZ Borland Developers Group - Delphi List'<BR><B>Subject:</B> RE: [DUG] 
TXMLDocument<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have followed 
examples on the web. Each of the examples fails in the same 
way.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">This should be simple. 
I can create a doc from scratch, write it to file, and manipulate it fine. Just 
seems to be when I assign an XML string or load from file that it fails. Maybe 
it&#8217;s because I&#8217;m creating it at runtime, and am not setting something 
important?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">var<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; XMLDoc: 
TXMLDocument;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; Node: IXMLNode 
;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">begin<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; XMLDoc := 
TXMLDocument.Create(nil);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; 
try<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; if 
FileExists(Filename) then<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
begin<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
XMLDoc.LoadFromFile(Filename) ;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
XMLDoc.Active := True ;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Node := XMLDoc.ChildNodes[0] ;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">David 
O'Brien</SPAN></FONT><FONT color=navy><SPAN 
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=1><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial">(</SPAN></FONT><FONT 
color=navy><SPAN style="COLOR: navy"><A href="mailto:dave@iccs.co.nz"><FONT 
face=Arial size=1><SPAN 
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">dave@iccs.co.nz</SPAN></FONT></A></SPAN></FONT><FONT 
face=Arial color=navy size=1><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial">)</SPAN></FONT><FONT 
color=navy><SPAN style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=1><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial">027 442 
1037</SPAN></FONT><FONT color=navy><SPAN 
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=1><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial">Computer sales and 
support services</SPAN></FONT><FONT color=navy><SPAN 
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=1><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial">Custom software 
design</SPAN></FONT><FONT color=navy><SPAN 
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P><FONT face="Times New Roman" color=navy size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: navy"><o:p>&nbsp;</o:p></SPAN></FONT></P><!-- B101699BBFB441a0907FA9947EFDF6C1 -->
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" color=navy size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: navy">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><FONT face="Times New Roman" color=navy size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: navy">I've stopped <STRONG><B><FONT 
face="Times New Roman">43</FONT></B></STRONG> spam and fraud messages. You can 
too!<BR>One month FREE spam and fraud protection at <A 
href="http://www.cloudmark.com/sigs?rc=xyn94">www.cloudmark.com</A><BR><A 
href="http://www.cloudmark.com/sigs?rc=xyn94"><SPAN 
style="TEXT-DECORATION: none"><IMG id=_x0000_i1031 height=42 
alt="Cloudmark Desktop - Join the fight against spam!" 
src="cid:438403200@21092005-2CAA" width=201 
border=0></SPAN></A><BR><BR></SPAN></FONT><o:p></o:p></P></DIV><!-- A0C0A2D1C85242f096A170281367BF11 -->
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN lang=EN-US 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
face=Tahoma size=2><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> delphi-bounces@ns3.123.co.nz 
[mailto:delphi-bounces@ns3.123.co.nz] <B><SPAN style="FONT-WEIGHT: bold">On 
Behalf Of </SPAN></B>David O'Brien<BR><B><SPAN 
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, 21 September 2005 11:23 
a.m.<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 
barry.delphi@gmail.com; '<st1:PersonName w:st="on">NZ Borland Developers Group - 
Delphi List</st1:PersonName>'<BR><B><SPAN 
style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [DUG] 
TXMLDocument</SPAN></FONT><SPAN lang=EN-US><o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Node := 
XMLDoc.DocumentElement.ChildNodes[0] ;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Returns a similar 
error. I&#8217;m obviously missing something important 
here.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">David 
O'Brien</SPAN></FONT><FONT color=navy><SPAN 
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=1><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial">(</SPAN></FONT><FONT 
color=navy><SPAN style="COLOR: navy"><A href="mailto:dave@iccs.co.nz"><FONT 
face=Arial size=1><SPAN 
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">dave@iccs.co.nz</SPAN></FONT></A></SPAN></FONT><FONT 
face=Arial color=navy size=1><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial">)</SPAN></FONT><FONT 
color=navy><SPAN style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=1><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial">027 442 
1037</SPAN></FONT><FONT color=navy><SPAN 
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=1><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial">Computer sales and 
support services</SPAN></FONT><FONT color=navy><SPAN 
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=1><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial">Custom software 
design</SPAN></FONT><FONT color=navy><SPAN 
style="COLOR: navy"><o:p></o:p></SPAN></FONT></P>
<P><FONT face="Times New Roman" color=navy size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: navy"><o:p>&nbsp;</o:p></SPAN></FONT></P><!-- B101699BBFB441a0907FA9947EFDF6C1 -->
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" color=navy size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: navy">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" 
color=navy size=3><SPAN style="FONT-SIZE: 12pt; COLOR: navy">I've stopped 
<STRONG><B><FONT face="Times New Roman">43</FONT></B></STRONG> spam and fraud 
messages. You can too!<BR>One month FREE spam and fraud protection at <A 
href="http://www.cloudmark.com/sigs?rc=xyn94">www.cloudmark.com</A><BR><A 
href="http://www.cloudmark.com/sigs?rc=xyn94"><SPAN 
style="TEXT-DECORATION: none"><IMG id=_x0000_i1027 height=42 
alt="Cloudmark Desktop - Join the fight against spam!" 
src="cid:438403200@21092005-2CAA" width=201 
border=0></SPAN></A></SPAN></FONT><o:p></o:p></P></DIV>
<DIV><!-- A0C0A2D1C85242f096A170281367BF11 -->
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN lang=EN-US 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
face=Tahoma size=2><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> delphi-bounces@ns3.123.co.nz 
[mailto:delphi-bounces@ns3.123.co.nz] <B><SPAN style="FONT-WEIGHT: bold">On 
Behalf Of </SPAN></B>Barry Neale<BR><B><SPAN 
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, 21 September 2005 11:19 
a.m.<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <st1:PersonName 
w:st="on">NZ Borland Developers Group - <st1:place w:st="on">Delphi</st1:place> 
List</st1:PersonName><BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> 
Re: [DUG] TXMLDocument</SPAN></FONT><SPAN 
lang=EN-US><o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">try starting with the XMLDoc 's DocumentElement property 
and go from there instead of going thru the XMLDoc's 
CHildNodes.<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><BR><BR>&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><SPAN class=gmailquote><FONT face="Times New Roman" 
size=3><SPAN style="FONT-SIZE: 12pt">On 9/21/05, <B><SPAN 
style="FONT-WEIGHT: bold">David O'Brien</SPAN></B> &lt;<A 
href="mailto:dave@iccs.co.nz">dave@iccs.co.nz</A>&gt; 
wrote:</SPAN></FONT></SPAN> <o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">Having trouble with this component:<BR>Var<BR>Node: 
IXMLNode ;<BR>...<BR>XMLDoc.LoadFromFile(Filename);<BR>XMLDoc.Active := True 
;<BR>ShowMessage(InttoStr(XMLDoc.ChildNodes.Count)) ; // shows one 
child...<BR>Node := XMLDoc.ChildNodes[0] ; // Makes no diff if I use 0 or 
1...<BR><BR>The last line gives: Access violation at address 00403C95... Read of 
address <BR>73656369.<BR><BR>Does anyone have any example code that explains how 
to use this component? I<BR>am able to create a document from scratch and write 
it to file ok, it's just<BR>reading it back.<BR><BR>Ta,<BR>David O'Brien <BR>(<A 
href="mailto:dave@iccs.co.nz">dave@iccs.co.nz</A>)<BR>027 442 1037<BR>Computer 
sales and support services<BR>Custom software design<BR><BR>I've stopped 43 spam 
and fraud messages. You can too!<BR>One month FREE spam and fraud protection at 
<BR><A 
href="http://www.cloudmark.com/sig/?rc=xyn94">http://www.cloudmark.com/sig/?rc=xyn94</A><BR>-----Original 
Message-----<BR>From: <A 
href="mailto:delphi-bounces@ns3.123.co.nz">delphi-bounces@ns3.123.co.nz</A> 
[mailto: <A 
href="mailto:delphi-bounces@ns3.123.co.nz">delphi-bounces@ns3.123.co.nz</A>] 
On<BR>Behalf Of Paul McKenzie<BR>Sent: Wednesday, 21 September 2005 11:03 
a.m.<BR>To: <st1:PersonName w:st="on">NZ Borland Developers Group - <st1:place 
w:st="on">Delphi</st1:place> List</st1:PersonName><BR>Subject: Re: [DUG] 
[OFF-TOPIC]:What ever happened to? <BR><BR>We did some basic testing C# in the 
D2005 IDE and attempting to debug a<BR>3-Tier app crawled<BR>attempting to load 
a large project crawled<BR>The same could not be said of VS2005 (ok D2006 may 
match speed, but it is <BR>not here now and not sure<BR>if D2006 will be .Net 2 
compatible)<BR><BR>Regards<BR>Paul McKenzie<BR><st1:place w:st="on"><st1:City 
w:st="on">Wellington</st1:City></st1:place><BR><st1:place 
w:st="on"><st1:country-region w:st="on">New 
Zealand</st1:country-region></st1:place><BR><BR><BR>James Sugrue wrote:<BR>&gt; 
I disagree with that. There are some features that VS has that D2005 <BR>&gt; 
doesn't, mostly to do with <st1:place w:st="on"><st1:City 
w:st="on">ADO</st1:City></st1:place> and IDE stability.<BR>&gt;<BR>&gt; 
-----Original Message-----<BR>&gt; From: <A 
href="mailto:delphi-bounces@ns3.123.co.nz">delphi-bounces@ns3.123.co.nz</A> 
[mailto:<A href="mailto:delphi-bounces@ns3.123.co.nz"> 
delphi-bounces@ns3.123.co.nz</A>]<BR>On<BR>&gt; Behalf Of Jeremy North<BR>&gt; 
Sent: Wednesday, 21 September 2005 10:40 a.m.<BR>&gt; To: <A 
href="mailto:Nahum.Wild@payglobal.com">Nahum.Wild@payglobal.com</A>; 
<st1:PersonName w:st="on">NZ Borland Developers Group - Delphi 
List</st1:PersonName> <BR>&gt; Subject: Re: [DUG] [OFF-TOPIC]:What ever happened 
to?<BR>&gt;<BR>&gt;<BR>&gt; While I don't mind C# and have done quite a bit you 
don't need VS to<BR>&gt; use C# as <st1:place w:st="on">Delphi</st1:place> copes 
quite well with it.<BR>&gt;<BR>&gt; <BR>&gt; 
_______________________________________________<BR>&gt; <st1:place 
w:st="on">Delphi</st1:place> mailing list<BR>&gt; <A 
href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz</A><BR>&gt; <A 
href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi 
</A><BR>&gt;<BR>&gt;<BR>&gt; 
_______________________________________________<BR>&gt; <st1:place 
w:st="on">Delphi</st1:place> mailing list<BR>&gt; <A 
href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz</A><BR>&gt; <A 
href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</A><BR>&gt;<BR>&gt;<BR><BR>_______________________________________________<BR><st1:place 
w:st="on">Delphi</st1:place> mailing list<BR><A 
href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz</A><BR><A 
href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</A><BR><BR>_______________________________________________<BR><st1:place 
w:st="on">Delphi</st1:place> mailing list<BR><A 
href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz</A><BR><A 
href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</A><o:p></o:p></SPAN></FONT></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV></BODY></HTML>