I can't resist posting a regex solution.
Have to admit I'm not entirely clear about what the OP wants to achieve,
but I think it's to get hold of a random URL from an xml file so here goes.
lcSQL_GetRegexMatches is a library function I use all the time to find all
the matches of a regex in a strin
If the above format is EXACTLY as the data appears, i.e.
--this is exact
then this is a very easy to parse. If the line above and below the random
URL is not as you've stated then there are other ways to skin the cat.
on mouseUp
put URL tPathToXMLFile into tData
put false into tParse
How would I go about getting a random URL out of an XML file like the
following? There's several of these CDATA tags.
My brain is about to explode.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubsc