dgrafx,
Thanks for your post and I apolagize for my late response. What if I don't know the URL of the XML content as suggested by the following code:
<cfset urlAddress="http://www.mac
Is there a way to have the page "Wait" for incoming XML Data Streams? and Process them as they come?
Regards,
Anthony
Main Topics
Browse All Topics





by: dgrafxPosted on 2007-03-05 at 03:27:15ID: 18653631
The following is directly from the cf documentation
romedia.co m/desdev/r esources/ m acromedia_ resources. xml">
t)> mlChildren > urces)>
tem.title. xmltext#</ strong></a ><br> sp; # item.autho r.xmltext# <br> dren)#"> tributes.N ame#<br>
It shows you how to parse the xml
just read it over and run it to see how it works - then do the same with your real code.
<!--- Set the URL address. --->
<cfset urlAddress="http://www.mac
<!--- Use the CFHTTP tag to get the file content represented by urladdress.
Note that />, not an end tag, terminates this tag. --->
<cfhttp url="#urladdress#" method="GET" resolveurl="Yes" throwOnError="Yes"/>
<!--- Parse the XML and output a list of resources. --->
<cfset xmlDoc = XmlParse(CFHTTP.FileConten
<!--- Get the array of resource elements, the xmlChildren of the xmlroot. --->
<cfset resources=xmlDoc.xmlroot.x
<cfset numresources=ArrayLen(reso
<cfloop index="i" from="1" to="#numresources#">
<cfset item=resources[i]>
<cfoutput>
<strong><a href=#item.url.xmltext#>#i
<strong>Author</strong>&nb
<strong>Applies to these products</strong><br>
<cfloop index="i" from="4" to="#arraylen(item.xmlChil
#item.xmlChildren[i].xmlAt
</cfloop>
<br>
</cfoutput>
</cfloop>