Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

XML File Search (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: ContextualMenu - ShowModal issue
Next thread: To multithread or not multithread, that is the question


FW: Special Valentine's Offer for Valentina - Beat the Price Increase!   -   Lynn Fredricks
  XML File Search   -   Dave Shirk
   Re: XML File Search   -   Charles Yeomans
   Re: XML File Search   -   Dave Wooldridge
   Re: XML File Search   -   Dave Shirk
    RB thread "paused" whenever a GUI action such as window dragging or resize occurs   -   Daniel Stenning

XML File Search
Date: 01.08.07 21:52 (Wed, 1 Aug 2007 16:52:14 -0400)
From: Dave Shirk
Hello NUG:

I am still working on my first database, and limping along
for now.

A new situation arose today. I have the need to search
a ten column XML file.

Is there a simple mechanism in REALBasic to accomplish
this?

Thanks in advance,

Dave Shirk
Pamlico Sounds
Oriental, NC

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

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

Re: XML File Search
Date: 01.08.07 22:02 (Wed, 1 Aug 2007 17:02:56 -0400)
From: Charles Yeomans

On Aug 1, 2007, at 4:52 PM, Dave Shirk wrote:

> Hello NUG:
>
> I am still working on my first database, and limping along
> for now.
>
> A new situation arose today. I have the need to search
> a ten column XML file.
>
> Is there a simple mechanism in REALBasic to accomplish
> this?

You might check out the XMLNode.xql method, which allows you to do
searches. It's pretty convenient.

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

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

Re: XML File Search
Date: 01.08.07 22:05 (Wed, 01 Aug 2007 14:05:37 -0700)
From: Dave Wooldridge
on 8/1/07 1:52 PM, Dave Shirk wrote:

> A new situation arose today. I have the need to search
> a ten column XML file.
> Is there a simple mechanism in REALBasic to accomplish
> this?

Yes, searching for specific elements in XML is quite easy with XPath
queries. Use the XMLNode's XQL function to perform a search. Matching XML
Nodes will be returned in an XMLNodeList.

If you need to search for specific plain text within XMLTextNodes, then use
XQL to find all the eligible XMLTextNodes in your XML document, then get
their child's text value and test to see if your keyword query matches any
of the text values.

The RB Language Reference has some info about the XQL function, but the
documentation is a little sparse, so you may want to search RBGarage.com for
more in-depth RB XML examples and tutorials.

Regards,
Dave Wooldridge
Electric Butterfly
http://www.ebutterfly.com

-------------------------------------
UniHelp 3 for REALbasic:
The cross-platform help system
For Mac, Windows, and Linux
http://www.ebutterfly.com/rb/unihelp.php
-------------------------------------



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

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

Re: XML File Search
Date: 02.08.07 02:25 (Wed, 1 Aug 2007 21:25:07 -0400)
From: Dave Shirk

On Aug 1, 2007, at 5:02 PM, Charles Yeomans wrote:

>> A new situation arose today. I have the need to search
>> a ten column XML file.
>>
>> Is there a simple mechanism in REALBasic to accomplish
>> this?
>
> You might check out the XMLNode.xql method, which allows you to do
> searches. It's pretty convenient.
>
> Charles Yeomans

On Aug 1, 2007, at 5:05 PM, Dave Wooldridge wrote:

> If you need to search for specific plain text within XMLTextNodes,
> then use
> XQL to find all the eligible XMLTextNodes in your XML document,
> then get
> their child's text value and test to see if your keyword query
> matches any
> of the text values.
>
> The RB Language Reference has some info about the XQL function, but
> the
> documentation is a little sparse, so you may want to search
> RBGarage.com for
> more in-depth RB XML examples and tutorials.
>
> Regards,
> Dave Wooldridge

Charles and Dave,

Thanks for the tips. I was able to do what you suggested just
fine. As it turns out, the layout of the xml file was not well
structured for searching. However, I did learn how to do it ;-)

Thanks again,

Dave Shirk

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

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