🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.xml
Article #60

Re: TXMLDocument with Multiple Namespaces

#60
From: Chris Krohn
Date: Tue, 22 Apr 2008 15:19
27 lines
1655 bytes
Thanks for the reply, but unfortunately, that didn't work.  I tried that and I just get a
null value back.  The funny thing is that I found that if I do:

 RootNode.ChildNodes[0].AttributeNodes[0].NodeValue 

it works.  But I can't figure any way to access it other than by index postion.

Chris


On Tue, 22 Apr 2008 07:40:49 +0200, Michael Justin <michael.justin@nospam.gmx.net> wrote:

>> You will notice that the data node is in the rs namespace and the row node is in the z
>> namespace. 
>
>Try GetAttributeNS:
>
>ItemCount := StrToInt(RootNode.GetAttributNS('ItemCount', 
>'urn:schemas-microsoft-com:rowset'));
>
>Hope this helps(tm)

---
Chris Krohn
IT Manager
Cayman Islands Port Authority
ckrohn at caymanport dot com
Technical Details
Message-ID: <6c0s04lq0p6rglc5huhek92ftv9tsotvk6@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <1qrp049smjmi0q6nkhrqkek84vo06uteod@4ax.com> <480d7a32@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f5d9b,452d7d6ec3e9d5ff
X-Google-Attributes: gidf5d9b,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Chris Krohn <ckrohn@caymanport.com>
Newsgroups: borland.public.delphi.xml
Subject: Re: TXMLDocument with Multiple Namespaces
Date: Tue, 22 Apr 2008 10:19:39 -0500
Organization: Cayman Islands Port Authority
Message-ID: <6c0s04lq0p6rglc5huhek92ftv9tsotvk6@4ax.com>
References: <1qrp049smjmi0q6nkhrqkek84vo06uteod@4ax.com> <480d7a32@newsgroups.borland.com>
X-Newsreader: Forte Agent 3.0/32.763
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 208.157.149.78
X-Trace: newsgroups.borland.com 1208877594 208.157.149.78 (22 Apr 2008 08:19:54 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail