Parse the myDom variable (I prefer XPATH for this) for an element that each record should have, getting the array. Numrows for that array will give you that number.
<@assign name="request$howmany" value='<@elementvalue object="user$myDom" XPATH="/main/id" type="array">'> <@numrows array=request$howmany> This was from memory, so check in the user manual to be sure I had the syntax correct. This example presumes that the root element is "main" and that "id" is a child of main. Dale Graham, PhD Consultant, NIH Intramural DataBase (NIDB) Mind Over Machines > On Oct 20, 2013, at 8:13 AM, Wayne Irvine <[email protected]> wrote: > > I am playing around with some search results from Google Maps API. > > I'm making a Web Call and loading the resultant XML into a var: > > <@ASSIGN NAME="myDom" SCOPE="user" VALUE=<@DOM VALUE="@@request$httpData">> > > My question is, how do I do the equivalent of a <@NUMROWS> on it to count the > records? > > And what other tools do I have to cycle through the data? > > Wayne Irvine > w: http://www.byteserve.com.au/ > p: +61 2 9960 6099 > m: 0409 960 609 > > > To unsubscribe from this list, please send an email to > [email protected] with "unsubscribe terascript-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
