If you are on CFMX, here is an example for you. I think it will give
you a head start.

<cfhttp method="GET"
url=""> <cfset myListing = xmlsearch( xmlparse( cfhttp.filecontent ), '//Listing' )>
<cfloop from="1" to="#arraylen( myListing )#" index="i">
<cfdump var="#myListing[i].xmlchildren#">
</cfloop>

On Thu, 07 Oct 2004 19:46:08 -0400, Britta Bennett
<[EMAIL PROTECTED]> wrote:
> Hello Dave, Hello Paul..
>
> Yes, it being painfully slow is exactly the problem I'm encountering, this
> is why the queries and /or loops keep on hanging on the server.. this
> realtor has only three listings, there can be those that have 50+..
>
> Here's the entire wad of code from my side:
>
> <CF_XMLPARSER
> URL=""> > OUTPUT="myVariable">
>
> <cfoutput>
> <cf_dump v="myVariable">
>
> <!------- start looping through the listings -------->
> <cfset count ="">
> <cfloop from="1"
> index="#myVariable.ResidentialProperty.Listing.ListingID.INNER_TEXT#"
> to="#myVariable.ResidentialProperty.QueryStatistics.TotalResults.INNER_TEXT#">
>
> Street Address
> #myVariable.ResidentialProperty.Listing.StreetAddress.INNER_TEXT#
>
> <cfif Count IS ""><cfset Count = 1></cfif>
> <cfif Count IS "1"><cfset Count = Count +1></cfif>
>
> </cfloop>
> </cfoutput>
>
> I assume that since the CFX_XMLParser(from
> http://www.cfdev.com/products/download.cfm) has been so highly spoken of,
> this is not a problem with this tag.
>
> If I do not cfdump, and just run the page,
> (http://realtorwebsites.ca/admin/CFX_XMLParser/example2.cfm) it's quicker.
> I've heard that CFDump can hang a server when outputting a large file?
> Should I just not use that tag, or should it be running properly?
>
> Do you need to see a copy of the xml file at the realty board, or is the
> problem on my side?  Thanks so much for taking a look at
> this!________________________________
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to