This should give you enoguh to go on...

<cfhttp method="GET"
url=""> 1&mxrw=50"></cfhttp>
<cfset myXMLDocument=XmlParse(cfhttp.filecontent)>

<cfdump var="#myXMLDocument.ResidentialProperty#">

<hr>

<cfloop
from="#myXMLDocument.ResidentialProperty.QueryStatistics.startRow.xmlTex
t#"
to="#myXMLDocument.ResidentialProperty.QueryStatistics.TotalResults.xmlT
ext#" index="i">
<cfoutput>


#myXMLDocument.ResidentialProperty.listing[i].streetAddress.xmlText#<br>


#myXMLDocument.ResidentialProperty.listing[i].ListingData.ListPrice.xmlT
ext#<br>


#myXMLDocument.ResidentialProperty.listing[i].ListingData.ListingType.xm
lText#<br>


#myXMLDocument.ResidentialProperty.listing[i].ListingData.remarks.xmlTex
t#<br>
<img border="0"
src=""> >
</cfoutput>
<hr>
</cfloop>

-----Original Message-----
From: Britta Bennett [mailto:[EMAIL PROTECTED]
Sent: 07 October 2004 17:19
To: CF-Talk
Subject: Re: Need FAST XML to CF Tag

Hi Craig,

Thanks for your reply. I think the problem I'm having is not with the
parsing aspect of it, but the loop that goes through the data for each
listing, converting the xml to cfvariables, being too slow.  

Does the XMLParse run as fast as the CFX_XMLParser?
My server's running MX, but I had never heard of it till now as the
manual sitting on my desk is Ben's good old CF 4.0..

Would you be as good as to tell me how to parse the following string:

http://mlsr.realtylink.org/mlsr_xml/res_sale_result.cfm?agentid=4001&mxr
w=50

Would this work?
<cffile action=""> file="http://mlsr.realtylink.org/mlsr_xml/res_sale_result.cfm?agentid=40
01&mxrw=50" variable="XMLFileText">
<cfset myXMLDocument=XmlParse(XMLFileText)>

Then once I've done that, how to I refer to the content?
For instance,
<cfoutput>#Listing.ListingDetails.HomeAddress#</cfoutput>??
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to