realbasic-nug
[Top] [All Lists]

Re: Accessing XML node attributes?

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Accessing XML node attributes?
From: Charles Yeomans <charles@declareSub.com>
Date: Fri, 6 Jun 2008 09:36:37 -0400
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <000801c8c7ca$d26dc6b0$2101a8c0@Kudu>
References: <000801c8c7ca$d26dc6b0$2101a8c0@Kudu>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

On Jun 6, 2008, at 7:45 AM, Robin Lauryssen-Mitchell wrote:

Hi folks,



I have an XML node that looks like this: <Foo name="Bar"></Foo>



How do I get at the 'name' attribute?


If you have a reference of type XMLNode, you may need to cast it to XMLElement. Then you can call GetAttribute.

Charles Yeomans

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>