realbasic-nug
[Top] [All Lists]

Re: XML stuff

To: Dan Cooper <dan dot cooper at xpsprint dot co dot uk>, REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: XML stuff
From: Brady Duga <duga at ljug dot com>
Date: Tue, 19 Oct 2004 08:12:00 -0700
Cc:
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <001a01c4b5cb$a4409160$940a0ac0 at dan>

On Oct 19, 2004, at 4:06 AM, Dan Cooper wrote:

I have a XML file containing the following:

You can do something like this:

  doc = new XmlDocument(s)
  MsgBox doc.Xql("//addr1").item(0).FirstChild.Value

where s is your xml text and doc is an XMLDocument. That will find all the "addr1" tags in the document, then get the first child of the first "addr1" tag and display it. You might want to do some nil checks as well.

--Brady
The La Jolla Underground

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

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

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